Skip to content

Commit 1e41c8f

Browse files
committed
Document deprecation of importing WITH.
1 parent bb87e09 commit 1e41c8f

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

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

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,7 @@ a|
13741374
To continue using it, escape the identifier by adding backticks around the identifier `%s`.
13751375
- The character with the Unicode representation `%s` is deprecated for unescaped identifiers and will not be supported in the future.
13761376
To continue using it, escape the identifier by adding backticks around the identifier `%s`.
1377+
- label:deprecated[Deprecated in 5.23] CALL subquery without a variable scope clause is deprecated. Use CALL (`%s`) { ... }
13771378
- All subqueries in a `UNION [ALL]` should have the same ordering for the return columns.
13781379
[NOTE]
13791380
In versions 5.5 to 5.25, using differently ordered return items in a `UNION [ALL]` clause is deprecated.
@@ -1539,6 +1540,73 @@ The Unicode character `\u0085` is deprecated for unescaped identifiers and will
15391540
======
15401541
=====
15411542

1543+
.Using a CALL subquery scope without a variable scope clause
1544+
[.tabbed-example]
1545+
=====
1546+
[.include-with-GQLSTATUS-code]
1547+
======
1548+
Query::
1549+
+
1550+
[source,cypher]
1551+
----
1552+
WITH 42 AS nbr
1553+
CALL {
1554+
WITH nbr
1555+
RETURN nbr + 3 AS otherNbr
1556+
}
1557+
RETURN otherNbr
1558+
----
1559+
1560+
Returned GQLSTATUS code::
1561+
01N00
1562+
1563+
Returned status description::
1564+
warn: feature deprecated.
1565+
`CALL` subquery without a variable scope clause is deprecated. Use `CALL (nbr) {...}`
1566+
1567+
Suggestions for improvement::
1568+
Replace the importing `WITH` with a variable scope clause.
1569+
+
1570+
[source,cypher]
1571+
----
1572+
WITH 42 AS nbr
1573+
CALL (nbr) {
1574+
RETURN nbr + 3 AS otherNbr
1575+
}
1576+
RETURN otherNbr
1577+
----
1578+
1579+
======
1580+
[.include-with-neo4j-code]
1581+
======
1582+
Query::
1583+
+
1584+
[source,cypher]
1585+
----
1586+
WITH 42 AS nbr
1587+
CALL {
1588+
WITH nbr
1589+
RETURN nbr + 3 AS otherNbr
1590+
}
1591+
RETURN otherNbr
1592+
----
1593+
Description of the returned code::
1594+
`CALL` subquery without a variable scope clause is deprecated. Use `CALL (nbr) {...}`
1595+
1596+
Suggestions for improvement::
1597+
Replace the importing `WITH` with a variable scope clause.
1598+
+
1599+
[source,cypher]
1600+
----
1601+
WITH 42 AS nbr
1602+
CALL (nbr) {
1603+
RETURN nbr + 3 AS otherNbr
1604+
}
1605+
RETURN otherNbr
1606+
----
1607+
======
1608+
=====
1609+
15421610
[#_deprecated-feature-with-replacement]
15431611
=== Feature deprecated with a replacement
15441612

0 commit comments

Comments
 (0)