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
a|Variable in subquery is shadowing a variable with the same name from the outer scope.
5142
5142
|Description
5143
5143
|Variable in subquery is shadowing a variable with the same name from the outer scope.
5144
-
If you want to use that variable instead, it must be imported into the subquery using importing WITH clause. (`%s`)
5144
+
If you want to use that variable instead, it must be imported into the subquery using a variable scope clause. (`%s`)
5145
5145
|Category
5146
5146
m|GENERIC
5147
5147
|GQLSTATUS code
5148
5148
m|03N60
5149
5149
|Status description
5150
5150
a|info: subquery variable shadowing.
5151
-
The variable `{ <<variable>> }` in the subquery uses the same name as a variable from the outer query. Use `WITH { <<variable>> }` in the subquery to import the one from the outer scope unless you want it to be a new variable.
5151
+
The variable `{ <<variable>> }` in the subquery uses the same name as a variable from the outer query. Use `{ <<clause>> } ({ <<variable>> })` to import the one from the outer scope unless you want it to be a new variable.
5152
5152
|Classification
5153
5153
m|GENERIC
5154
5154
|SeverityLevel
@@ -5178,17 +5178,16 @@ Returned GQLSTATUS code::
5178
5178
Returned status description::
5179
5179
info: subquery variable shadowing.
5180
5180
The variable `n` in the subquery uses the same name as a variable from the outer query.
5181
-
Use `WITH n` in the subquery to import the one from the outer scope unless you want it to be a new variable.
5181
+
Use `CALL (n)` to import the one from the outer scope unless you want it to be a new variable.
5182
5182
5183
5183
Suggestions for improvement::
5184
5184
If the intended behavior of the query is for the variable in the subquery to be a new variable, then nothing needs to be done.
5185
-
If the intended behavior is to use the variable from the outer query, it needs to be imported to the subquery using the `WITH` clause.
5185
+
If the intended behavior is to use the variable from the outer query, it needs to be imported to the subquery using a variable scope clause.
5186
5186
+
5187
5187
[source,cypher]
5188
5188
----
5189
5189
MATCH (n)
5190
-
CALL {
5191
-
WITH n
5190
+
CALL (n) {
5192
5191
MATCH (n)--(m)
5193
5192
RETURN m
5194
5193
}
@@ -5211,17 +5210,16 @@ RETURN *
5211
5210
5212
5211
Description of the returned code::
5213
5212
Variable in subquery is shadowing a variable with the same name from the outer scope.
5214
-
If you want to use that variable instead, it must be imported into the subquery using importing `WITH` clause. (the shadowing variable is: `n`)
5213
+
If you want to use that variable instead, it must be imported into the subquery using a variable scope clause. (the shadowing variable is: `n`)
5215
5214
5216
5215
Suggestions for improvement::
5217
5216
If the intended behavior of the query is for the variable in the subquery to be a new variable, then nothing needs to be done.
5218
-
If the intended behavior is to use the variable from the outer query, it needs to be imported to the subquery using the `WITH` clause.
5217
+
If the intended behavior is to use the variable from the outer query, it needs to be imported to the subquery using a variable scope clause.
0 commit comments