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
@@ -167,8 +167,8 @@ MATCH (where {...})
167
167
----
168
168
MATCH (...)-[where {...}]->()
169
169
----
170
-
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.
171
-
To continue using variables with this name, use backticks to escape the variable name:
170
+
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.
171
+
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.
200
-
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`
199
+
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.
200
+
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`
201
201
202
202
a|
203
203
label:functionality[]
@@ -209,8 +209,8 @@ CASE x ... WHEN contains + 1 THEN ... END
209
209
----
210
210
CASE x ... WHEN contains - 1 THEN ... END
211
211
----
212
-
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.
213
-
To continue using variables with this name, use backticks to escape the variable name:
212
+
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.
213
+
To continue using variables with this name, use backticks to quote the variable name:
214
214
215
215
* Additions: `CASE x ... WHEN ++`contains`++ + 1 THEN ... END`
216
216
* Subtractions: `CASE x ... WHEN ++`contains`++ - 1 THEN ... END`
@@ -225,8 +225,8 @@ CASE x ... WHEN in[1] THEN ... END
225
225
----
226
226
CASE x ... WHEN in["abc"] THEN ... END
227
227
----
228
-
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.
229
-
To continue using variables with this name, use backticks to escape the variable name:
228
+
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.
229
+
To continue using variables with this name, use backticks to quote the variable name:
230
230
231
231
* `CASE x ... WHEN ++`in`++[1] THEN ... END`
232
232
* `CASE x ... WHEN ++`in`++["abc"] THEN ... END`
@@ -1117,9 +1117,9 @@ label:deprecated[]
1117
1117
RETURN 1 as my\u0085identifier
1118
1118
----
1119
1119
a|
1120
-
The Unicode character \`\u0085` is deprecated for unescaped identifiers and will be considered as a whitespace character in the future.
1121
-
To continue using it, escape the identifier by adding backticks around the identifier.
1122
-
This applies to all unescaped identifiers in Cypher, such as label expressions, properties, variable names or parameters.
1120
+
The Unicode character \`\u0085` is deprecated for identifiers not quoted in backticks and will be considered as a whitespace character in the future.
1121
+
To continue using it, quote the identifier with backticks.
1122
+
This applies to all identifiers in Cypher, such as label expressions, properties, variable names or parameters.
1123
1123
In the given example, the quoted identifier would be \`my�identifier`.
1124
1124
1125
1125
a|
@@ -1130,8 +1130,8 @@ label:deprecated[]
1130
1130
RETURN 1 as my$Identifier
1131
1131
----
1132
1132
a|
1133
-
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.
1134
-
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`.
1133
+
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.
1134
+
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`.
1135
1135
1136
1136
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