|
1374 | 1374 | To continue using it, escape the identifier by adding backticks around the identifier `%s`. |
1375 | 1375 | - The character with the Unicode representation `%s` is deprecated for unescaped identifiers and will not be supported in the future. |
1376 | 1376 | 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`) { ... } |
1377 | 1378 | - All subqueries in a `UNION [ALL]` should have the same ordering for the return columns. |
1378 | 1379 | [NOTE] |
1379 | 1380 | 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 |
1539 | 1540 | ====== |
1540 | 1541 | ===== |
1541 | 1542 |
|
| 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 | + |
1542 | 1610 | [#_deprecated-feature-with-replacement] |
1543 | 1611 | === Feature deprecated with a replacement |
1544 | 1612 |
|
|
0 commit comments