Skip to content

Commit a8ca090

Browse files
committed
Document importing WITH deprecation.
Looks like this was overlooked before.
1 parent de22f12 commit a8ca090

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
@@ -1310,6 +1310,7 @@ a|
13101310
To continue using it, escape the identifier by adding backticks around the identifier `%s`.
13111311
- The character with the Unicode representation `%s` is deprecated for unescaped identifiers and will not be supported in the future.
13121312
To continue using it, escape the identifier by adding backticks around the identifier `%s`.
1313+
- `%s` subquery without a variable scope clause is now deprecated. Use CALL (`%s`) { ... }
13131314
- All subqueries in a `UNION [ALL]` should have the same ordering for the return columns.
13141315
[NOTE]
13151316
In versions 5.5 to 5.25, using differently ordered return items in a `UNION [ALL]` clause is deprecated.
@@ -1626,6 +1627,73 @@ The Unicode character `\u0085` is deprecated for unescaped identifiers and will
16261627
======
16271628
=====
16281629

1630+
.Using a CALL subquery scope without a variable scope clause
1631+
[.tabbed-example]
1632+
=====
1633+
[.include-with-GQLSTATUS-code]
1634+
======
1635+
Query::
1636+
+
1637+
[source,cypher]
1638+
----
1639+
WITH 42 AS nbr
1640+
CALL {
1641+
WITH nbr
1642+
RETURN nbr + 3 AS otherNbr
1643+
}
1644+
RETURN otherNbr
1645+
----
1646+
1647+
Returned GQLSTATUS code::
1648+
01N00
1649+
1650+
Returned status description::
1651+
warn: feature deprecated.
1652+
`CALL` subquery without a variable scope clause is now deprecated. Use `CALL (nbr) {...}`
1653+
1654+
Suggestions for improvement::
1655+
Replace the Importing WITH with a variable scope clause.
1656+
+
1657+
[source,cypher]
1658+
----
1659+
WITH 42 AS nbr
1660+
CALL (nbr) {
1661+
RETURN nbr + 3 AS otherNbr
1662+
}
1663+
RETURN otherNbr
1664+
----
1665+
1666+
======
1667+
[.include-with-neo4j-code]
1668+
======
1669+
Query::
1670+
+
1671+
[source,cypher]
1672+
----
1673+
WITH 42 AS nbr
1674+
CALL {
1675+
WITH nbr
1676+
RETURN nbr + 3 AS otherNbr
1677+
}
1678+
RETURN otherNbr
1679+
----
1680+
Description of the returned code::
1681+
`CALL` subquery without a variable scope clause is now deprecated. Use `CALL (nbr) {...}`
1682+
1683+
Suggestions for improvement::
1684+
Replace the Importing WITH with a variable scope clause.
1685+
+
1686+
[source,cypher]
1687+
----
1688+
WITH 42 AS nbr
1689+
CALL (nbr) {
1690+
RETURN nbr + 3 AS otherNbr
1691+
}
1692+
RETURN otherNbr
1693+
----
1694+
======
1695+
=====
1696+
16291697
.Deprecated function namespace
16301698
[.tabbed-example]
16311699
=====

0 commit comments

Comments
 (0)