You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,8 @@ MATCH (where {...})
49
49
----
50
50
MATCH (...)-[where {...}]->()
51
51
----
52
-
a| The unescaped variable named `where` (or any casing variant, like `WHERE`) used in a node or relationship pattern followed directly by a property key-value expression is deprecated.
53
-
To continue using variables with this name, use backticks to escape the variable name:
52
+
a| The variable named `where` (or any casing variant, like `WHERE`) used in a node or relationship pattern followed directly by a property key-value expression is deprecated.
53
+
To continue using variables with this name, use backticks to quote the variable name:
a| Using an unescaped variable named `is` (or any casing variant, like `IS`) as a `WHEN` operand in a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
82
-
To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: `CASE x ... WHEN ++`is`++ :: STRING THEN ... END`
81
+
a| Using a variable named `is` (or any casing variant, like `IS`) as a `WHEN` operand in a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
82
+
To continue using variables with this name in simple `CASE` expressions, use backticks to quote the variable name: `CASE x ... WHEN ++`is`++ :: STRING THEN ... END`
83
83
84
84
a|
85
85
label:functionality[]
@@ -91,8 +91,8 @@ CASE x ... WHEN contains + 1 THEN ... END
91
91
----
92
92
CASE x ... WHEN contains - 1 THEN ... END
93
93
----
94
-
a| Using an unescaped variable named `contains` (or any casing variant, like `CONTAINS`) in addition or subtraction operations within a `WHEN` operand of a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
95
-
To continue using variables with this name, use backticks to escape the variable name:
94
+
a| Using a variable named `contains` (or any casing variant, like `CONTAINS`) in addition or subtraction operations within a `WHEN` operand of a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
95
+
To continue using variables with this name, use backticks to quote the variable name:
96
96
97
97
* Additions: `CASE x ... WHEN ++`contains`++ + 1 THEN ... END`
98
98
* Subtractions: `CASE x ... WHEN ++`contains`++ - 1 THEN ... END`
@@ -107,8 +107,8 @@ CASE x ... WHEN in[1] THEN ... END
107
107
----
108
108
CASE x ... WHEN in["abc"] THEN ... END
109
109
----
110
-
a| Using the `[]` operator on an unescaped variable named `in` (or any casing variant, like `IN`) within a `WHEN` operand of a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
111
-
To continue using variables with this name, use backticks to escape the variable name:
110
+
a| Using the `[]` operator on a variable named `in` (or any casing variant, like `IN`) within a `WHEN` operand of a xref:queries/case.adoc#case-simple[simple `CASE`] expression is deprecated.
111
+
To continue using variables with this name, use backticks to quote the variable name:
112
112
113
113
* `CASE x ... WHEN ++`in`++[1] THEN ... END`
114
114
* `CASE x ... WHEN ++`in`++["abc"] THEN ... END`
@@ -1000,9 +1000,9 @@ label:deprecated[]
1000
1000
RETURN 1 as my\u0085identifier
1001
1001
----
1002
1002
a|
1003
-
The Unicode character \`\u0085` is deprecated for unescaped identifiers and will be considered as a whitespace character in the future.
1004
-
To continue using it, escape the identifier by adding backticks around the identifier.
1005
-
This applies to all unescaped identifiers in Cypher, such as label expressions, properties, variable names or parameters.
1003
+
The Unicode character \`\u0085` is deprecated for identifiers not quoted in backticks and will be considered as a whitespace character in the future.
1004
+
To continue using it, quote the identifier with backticks.
1005
+
This applies to all identifiers in Cypher, such as label expressions, properties, variable names or parameters.
1006
1006
In the given example, the quoted identifier would be \`my�identifier`.
1007
1007
1008
1008
a|
@@ -1013,8 +1013,8 @@ label:deprecated[]
1013
1013
RETURN 1 as my$Identifier
1014
1014
----
1015
1015
a|
1016
-
The character with the Unicode representation \`\u0024` is deprecated for unescaped identifiers and will not be supported in the future. To continue using it, escape the identifier by adding backticks around the identifier.
1017
-
This applies to all unescaped identifiers in Cypher, such as label expressions, properties, variable names or parameters. In the given example, the quoted identifier would be \`my$identifier`.
1016
+
The character with the Unicode representation \`\u0024` is deprecated for identifiers not quoted in backticks and will not be supported in the future. To continue using it, quote the identifier with backticks.
1017
+
This applies to all identifiers in Cypher, such as label expressions, properties, variable names or parameters. In the given example, the quoted identifier would be \`my$identifier`.
1018
1018
1019
1019
The following Unicode Characters are deprecated in identifiers:
Copy file name to clipboardExpand all lines: modules/ROOT/pages/syntax/naming.adoc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,23 +25,23 @@ For example, `MATCH ( a ) RETURN a` is equivalent to `MATCH (a) RETURN a`.
25
25
26
26
[[symbolic-names-escaping-rules]]
27
27
=== Using special characters in names
28
-
Non-alphabetic characters, including numbers, symbols and whitespace characters, *can* be used in names, but *must* be escaped using backticks.
28
+
Non-alphabetic characters, including numbers, symbols and whitespace characters, *can* be used in names, but *must* be quoted using backticks.
29
29
For example: `++`^n`++`, `++`1first`++`, `++`$$n`++`, and `++`my variable has spaces`++`.
30
-
Database names are an exception and may include dots without the need for escaping, although this behavior is deprecated as it may introduce ambiguity when addressing composite databases.
30
+
Database names are an exception and may include dots without the need for quoting using backticks, although this behavior is deprecated as it may introduce ambiguity when addressing composite databases.
31
31
For example: naming a database `foo.bar.baz` is valid, but deprecated. `++`foo.bar.baz`++` is valid.
32
32
33
-
Within an escaped name, the following escaping sequences are allowed:
33
+
Within a name quoted by backticks, the following character representations are allowed:
34
34
35
35
[options="header", cols=">1,<2"]
36
36
|===
37
-
|Escape sequence|Character
37
+
|Character representation | Description
38
38
|````| Backtick
39
39
|`\uxxxx`| Unicode UTF-16 code point (4 hex digits must follow the `\u`)
40
40
|===
41
41
42
42
[NOTE]
43
43
====
44
-
Using escaped names with unsanitized user input makes you vulnerable to Cypher injection.
44
+
Using names quoted in backticks with unsanitized user input makes you vulnerable to Cypher injection.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/syntax/reserved.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The reserved keywords are not permitted to be used as identifiers in the followi
16
16
* Function names
17
17
* Parameters
18
18
19
-
If any reserved keyword is escaped -- i.e. is encapsulated by backticks ```, such as `++`AND`++` -- it would become a valid identifier in the above contexts.
19
+
If any reserved keyword is quoted in backticks (```), such as `++`AND`++`, it would become a valid identifier in the above contexts; however, this approach is not recommended.
0 commit comments