|
1310 | 1310 | To continue using it, escape the identifier by adding backticks around the identifier `%s`. |
1311 | 1311 | - The character with the Unicode representation `%s` is deprecated for unescaped identifiers and will not be supported in the future. |
1312 | 1312 | 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`) { ... } |
1313 | 1314 | - All subqueries in a `UNION [ALL]` should have the same ordering for the return columns. |
1314 | 1315 | [NOTE] |
1315 | 1316 | 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 |
1626 | 1627 | ====== |
1627 | 1628 | ===== |
1628 | 1629 |
|
| 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 | + |
1629 | 1697 | .Deprecated function namespace |
1630 | 1698 | [.tabbed-example] |
1631 | 1699 | ===== |
|
0 commit comments