Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error code #1367

Merged
merged 1 commit into from
May 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs-2.0/3.ngql-guide/1.nGQL-overview/comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

This topic will describe the comments in nGQL.

## Legacy version compatibility
!!! compatibility "Legacy version compatibility"

* In Nebula Graph 1.x, there are four comment styles: `#`, `--`, `//`, `/* */`.
* Since Nebula Graph 2.x, `--` cannot be used as comments.
* In Nebula Graph 1.x, there are four comment styles: `#`, `--`, `//`, `/* */`.
* Since Nebula Graph 2.x, `--` cannot be used as comments.

## Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The following statements will not work because they refer to two different space
```ngql
nebula> CREATE SPACE IF NOT EXISTS my_space (vid_type=FIXED_STRING(30));
nebula> use MY_SPACE;
[ERROR (-8)]: SpaceNotFound:
[ERROR (-1005)]: SpaceNotFound:
```

## Keywords and Reserved Words are Case-Insensitive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you must use keywords in schema:

```ngql
nebula> CREATE TAG TAG(name string);
[ERROR (-7)]: SyntaxError: syntax error near `TAG'
[ERROR (-1004)]: SyntaxError: syntax error near `TAG'

nebula> CREATE TAG `TAG` (name string);
Execution succeeded
Expand Down