Skip to content

Commit 4b51fb3

Browse files
committed
Update status description and description of 03N60 to not suggest deprecated solution.
1 parent a8ca090 commit 4b51fb3

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

modules/ROOT/pages/notifications/all-notifications.adoc

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5141,14 +5141,14 @@ m|Neo.ClientNotification.Statement.SubqueryVariableShadowing
51415141
a|Variable in subquery is shadowing a variable with the same name from the outer scope.
51425142
|Description
51435143
|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`)
51455145
|Category
51465146
m|GENERIC
51475147
|GQLSTATUS code
51485148
m|03N60
51495149
|Status description
51505150
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.
51525152
|Classification
51535153
m|GENERIC
51545154
|SeverityLevel
@@ -5178,17 +5178,16 @@ Returned GQLSTATUS code::
51785178
Returned status description::
51795179
info: subquery variable shadowing.
51805180
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.
51825182

51835183
Suggestions for improvement::
51845184
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.
51865186
+
51875187
[source,cypher]
51885188
----
51895189
MATCH (n)
5190-
CALL {
5191-
WITH n
5190+
CALL (n) {
51925191
MATCH (n)--(m)
51935192
RETURN m
51945193
}
@@ -5211,17 +5210,16 @@ RETURN *
52115210

52125211
Description of the returned code::
52135212
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`)
52155214

52165215
Suggestions for improvement::
52175216
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.
52195218
+
52205219
[source,cypher]
52215220
----
52225221
MATCH (n)
5223-
CALL {
5224-
WITH n
5222+
CALL (n) {
52255223
MATCH (n)--(m)
52265224
RETURN m
52275225
}

0 commit comments

Comments
 (0)