From adcee9fee5dc072762c10f073a3dd2e953d7be50 Mon Sep 17 00:00:00 2001 From: hvub Date: Wed, 30 Oct 2024 11:37:30 +0100 Subject: [PATCH 1/7] adding CIP-190-deprecations --- .../notifications/all-notifications.adoc | 310 ++++++++++++++++++ 1 file changed, 310 insertions(+) diff --git a/modules/ROOT/pages/notifications/all-notifications.adoc b/modules/ROOT/pages/notifications/all-notifications.adoc index 79586373..a7c7163a 100644 --- a/modules/ROOT/pages/notifications/all-notifications.adoc +++ b/modules/ROOT/pages/notifications/all-notifications.adoc @@ -2021,6 +2021,316 @@ warn: feature deprecated without replacement. ====== ===== +.Using an unescaped variable named 'where' in node or relationship patterns +[.tabbed-example] +===== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH (where {p: 5}) +RETURN where +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`(where {p: 5})` is deprecated. +It is replaced by `(++`where`++ {p: 5})`. + +Suggestions for improvement:: +To continue using variables with this name, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH (`where` {p: 5}) +RETURN `where`.p +---- +====== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH ()-[where {p: 5}]->() +RETURN where +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`-[where {p: 5}]-` is deprecated. +It is replaced by `-[++`where`++ {p: 5}]-`. + +Suggestions for improvement:: +To continue using variables with this name, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH ()-[`where` {p: 5}]->() +RETURN `where`.p +---- +====== +===== + +.Using an unparenthesized label expression predicate as the right-hand side operand of `+` +[.tabbed-example] +===== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH (n)-[r]->(m) +WITH m, n.truthCodes AS listOfBooleans +RETURN listOfBooleans + m:A +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`... + m:A` is deprecated. +It is replaced by `... + (m:A)`. + +Suggestions for improvement:: +Parenthesize the label expression predicate on the right-hand side of `+`: ++ +[source,cypher] +---- +MATCH (n)-[r]->(m) +WITH m, n.truthCodes AS listOfBooleans +RETURN listOfBooleans + (m:A) +---- +====== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH (n)-[r]->(m) +WITH r, n.truthCodes AS listOfBooleans +RETURN listOfBooleans + r:C|D +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`... + r:C|D` is deprecated. +It is replaced by `... + (r:C|D)`. + +Suggestions for improvement:: +Parenthesize the label expression predicate on the right-hand side of `+`: ++ +[source,cypher] +---- +MATCH (n)-[r]->(m) +WITH r, n.truthCodes AS listOfBooleans +RETURN listOfBooleans + (r:C|D) +---- +====== +===== + +.Using an unescaped variable named `is` as a `WHEN` operand in a simple `CASE` expression +[.tabbed-example] +===== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH (n) +WITH n, n.internationalStandard AS is +RETURN CASE n + WHEN is :: INTEGER THEN "ISO/IEC" + is + ELSE is +END AS standardsName +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`WHEN is pass:[::] INTEGER` is deprecated. +It is replaced by `WHEN ++`is`++ pass:[::] INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH (n) +WITH n, n.internationalStandard AS `is` +RETURN CASE n + WHEN `is` :: INTEGER THEN "ISO/IEC" + `is` + ELSE `is` +END AS standardsName +---- +====== +===== + +.Using an unescaped variable named `contains` in addition or subtraction operations within a `WHEN` operand in a simple `CASE` expression +[.tabbed-example] +===== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH p = (:A)-[:HAS]->(:B) +WITH p, size(relationships(p)) AS contains +RETURN CASE size(nodes(p)) + WHEN contains + 1 THEN "okay" + ELSE "not okay" +END AS check +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`WHEN contains + 1 INTEGER` is deprecated. +It is replaced by `WHEN ++`contains`++ + 1 INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH p = (:A)-[:HAS]->(:B) +WITH p, size(relationships(p)) AS `contains` +RETURN CASE size(nodes(p)) + WHEN `contains` + 1 THEN "okay" + ELSE "not okay" +END AS check +---- +====== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH p = (:A)-[:HAS]->(:B) +WITH p, size(nodes(p)) AS contains +RETURN CASE size(relationships(p)) + WHEN contains - 1 THEN "okay" + ELSE "not okay" +END AS check +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`WHEN contains - 1 INTEGER` is deprecated. +It is replaced by `WHEN ++`contains`++ - 1 INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH p = (:A)-[:HAS]->(:B) +WITH p, size(nodes(p)) AS `contains` +RETURN CASE size(relationships(p)) + WHEN `contains` - 1 THEN "okay" + ELSE "not okay" +END AS check +---- +====== +===== + +.Using the `[]` operator on an unescaped variable named `in` within a `WHEN` operand in a simple `CASE` expression +[.tabbed-example] +===== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH (c:Client)-[:MAKES]->(t:Transaction) +WITH t, c.ibanNumbers AS in +RETURN CASE t.ibanNumber + WHEN in[0] THEN "used main account" + ELSE "used different account" +END AS check +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`WHEN in[0] INTEGER` is deprecated. +It is replaced by `WHEN ++`in`++[0] INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH (c:Client)-[:MAKES]->(t:Transaction) +WITH t, c.ibanNumbers AS `in` +RETURN CASE t.ibanNumber + WHEN `in`[0] THEN "used main account" + ELSE "used different account" +END AS check +---- +====== +[.include-with-GQLSTATUS-deprecated-with-replacement] +====== +Query:: ++ +[source,cypher] +---- +MATCH (in:Client)-[:MAKES]->(t:Transaction) +RETURN CASE t.ibanNumber + WHEN in["mainAccount"] THEN "used main account" + ELSE "used different account" +END AS check +---- + +Returned GQLSTATUS code:: +01N01 + +Returned status description:: +warn: feature deprecated with replacement. +`WHEN in["mainAccount"] INTEGER` is deprecated. +It is replaced by `WHEN ++`in`++["mainAccount"] INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH (in:Client)-[:MAKES]->(t:Transaction) +RETURN CASE t.ibanNumber + WHEN `in`["mainAccount"] THEN "used main account" + ELSE "used different account" +END AS check +---- +====== +===== + [#_deprecated-notifications-without-replacement] === Deprecated features without a future replacement From 7795ae20fea28f9571ab044b255e3a7b05993df4 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 30 Oct 2024 12:26:27 +0000 Subject: [PATCH 2/7] add neo4j code examples and fix the tabs --- .../notifications/all-notifications.adoc | 272 +++++++++++++++++- 1 file changed, 270 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/notifications/all-notifications.adoc b/modules/ROOT/pages/notifications/all-notifications.adoc index a7c7163a..ab9ec28a 100644 --- a/modules/ROOT/pages/notifications/all-notifications.adoc +++ b/modules/ROOT/pages/notifications/all-notifications.adoc @@ -2021,9 +2021,33 @@ warn: feature deprecated without replacement. ====== ===== -.Using an unescaped variable named 'where' in node or relationship patterns +.Using an unescaped variable named 'where' in node [.tabbed-example] ===== +[.include-with-neo4j-code] +====== + +Query:: ++ +[source,cypher] +---- +MATCH (where {p: 5}) +RETURN where +---- + +Description of the returned code:: +`(where {p: 5})` is deprecated. It is replaced by `(++`where`++ {p: 5})`. + +Suggestions for improvement:: +To continue using variables with this name, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH (`where` {p: 5}) +RETURN `where`.p +---- +====== + [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: @@ -2051,6 +2075,34 @@ MATCH (`where` {p: 5}) RETURN `where`.p ---- ====== +===== + +.Using an unescaped variable named 'where' in relationship patterns +[.tabbed-example] +===== +[.include-with-neo4j-code] +====== +Query:: ++ +[source,cypher] +---- +MATCH ()-[where {p: 5}]->() +RETURN where +---- + +Description of the returned code:: +`-[where {p: 5}]-` is deprecated. It is replaced by `-[++`where`++ {p: 5}]-`. + +Suggestions for improvement:: +To continue using variables with this name, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH ()-[`where` {p: 5}]->() +RETURN `where`.p +---- +====== + [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: @@ -2083,6 +2135,31 @@ RETURN `where`.p .Using an unparenthesized label expression predicate as the right-hand side operand of `+` [.tabbed-example] ===== +[.include-with-neo4j-code] +====== +Query:: ++ +[source,cypher] +---- +MATCH (n)-[r]->(m) +WITH m, n.truthCodes AS listOfBooleans +RETURN listOfBooleans + m:A +---- + +Description of the returned code:: +`... + m:A` is deprecated. It is replaced by `... + (m:A)`. + +Suggestions for improvement:: +Parenthesize the label expression predicate on the right-hand side of `+`: ++ +[source,cypher] +---- +MATCH (n)-[r]->(m) +WITH m, n.truthCodes AS listOfBooleans +RETURN listOfBooleans + (m:A) +---- +====== + [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: @@ -2112,6 +2189,36 @@ WITH m, n.truthCodes AS listOfBooleans RETURN listOfBooleans + (m:A) ---- ====== +===== + +.Using an unparenthesized label expression predicate as the right-hand side operand of `+` +[.tabbed-example] +===== +[.include-with-neo4j-code] +====== +Query:: ++ +[source,cypher] +---- +MATCH (n)-[r]->(m) +WITH r, n.truthCodes AS listOfBooleans +RETURN listOfBooleans + r:C|D +---- + +Description of the returned code:: +`... + r:C|D` is deprecated. It is replaced by `... + (r:C|D)`. + +Suggestions for improvement:: +Parenthesize the label expression predicate on the right-hand side of `+`: ++ +[source,cypher] +---- +MATCH (n)-[r]->(m) +WITH r, n.truthCodes AS listOfBooleans +RETURN listOfBooleans + (r:C|D) +---- +====== + [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: @@ -2146,6 +2253,36 @@ RETURN listOfBooleans + (r:C|D) .Using an unescaped variable named `is` as a `WHEN` operand in a simple `CASE` expression [.tabbed-example] ===== +[.include-with-neo4j-code] +====== +Query:: ++ +[source,cypher] +---- +MATCH (n) +WITH n, n.internationalStandard AS is +RETURN CASE n + WHEN is :: INTEGER THEN "ISO/IEC" + is + ELSE is +END AS standardsName +---- + +Description of the returned code:: +`WHEN is :: INTEGER` is deprecated. It is replaced by `WHEN ++`is`++ :: INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH (n) +WITH n, n.internationalStandard AS `is` +RETURN CASE n + WHEN `is` :: INTEGER THEN "ISO/IEC" + `is` + ELSE `is` +END AS standardsName +---- +====== [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: @@ -2183,9 +2320,39 @@ END AS standardsName ====== ===== -.Using an unescaped variable named `contains` in addition or subtraction operations within a `WHEN` operand in a simple `CASE` expression +.Using an unescaped variable named `contains` for relationships in addition or subtraction operations within a `WHEN` operand in a simple `CASE` expression [.tabbed-example] ===== +[.include-with-neo4j-code] +====== +Query:: ++ +[source,cypher] +---- +MATCH p = (:A)-[:HAS]->(:B) +WITH p, size(relationships(p)) AS contains +RETURN CASE size(nodes(p)) + WHEN contains + 1 THEN "okay" + ELSE "not okay" +END AS check +---- + +Description of the returned code:: +`WHEN contains + 1 INTEGER` is deprecated. It is replaced by `WHEN ++`contains`++ + 1 INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH p = (:A)-[:HAS]->(:B) +WITH p, size(relationships(p)) AS `contains` +RETURN CASE size(nodes(p)) + WHEN `contains` + 1 THEN "okay" + ELSE "not okay" +END AS check +---- +====== [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: @@ -2221,6 +2388,42 @@ RETURN CASE size(nodes(p)) END AS check ---- ====== +===== + +.Using an unescaped variable named `contains` for nodes in addition or subtraction operations within a `WHEN` operand in a simple `CASE` expression +[.tabbed-example] +===== +[.include-with-neo4j-code] +====== +Query:: ++ +[source,cypher] +---- +MATCH p = (:A)-[:HAS]->(:B) +WITH p, size(nodes(p)) AS contains +RETURN CASE size(relationships(p)) + WHEN contains - 1 THEN "okay" + ELSE "not okay" +END AS check +---- + +Description of the returned code:: + +`WHEN contains - 1 INTEGER` is deprecated. It is replaced by `WHEN ++`contains`++ - 1 INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH p = (:A)-[:HAS]->(:B) +WITH p, size(nodes(p)) AS `contains` +RETURN CASE size(relationships(p)) + WHEN `contains` - 1 THEN "okay" + ELSE "not okay" +END AS check +---- +====== [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: @@ -2261,6 +2464,37 @@ END AS check .Using the `[]` operator on an unescaped variable named `in` within a `WHEN` operand in a simple `CASE` expression [.tabbed-example] ===== +[.include-with-neo4j-code] +====== +Query:: ++ +[source,cypher] +---- +MATCH (c:Client)-[:MAKES]->(t:Transaction) +WITH t, c.ibanNumbers AS in +RETURN CASE t.ibanNumber + WHEN in[0] THEN "used main account" + ELSE "used different account" +END AS check +---- + +Description of the returned code:: + +`WHEN in[0] INTEGER` is deprecated. It is replaced by `WHEN ++`in`++[0] INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH (c:Client)-[:MAKES]->(t:Transaction) +WITH t, c.ibanNumbers AS `in` +RETURN CASE t.ibanNumber + WHEN `in`[0] THEN "used main account" + ELSE "used different account" +END AS check +---- +====== [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: @@ -2296,6 +2530,40 @@ RETURN CASE t.ibanNumber END AS check ---- ====== +===== + +.Using the `[]` operator on an unescaped variable named `in` within a `WHEN` operand in a simple `CASE` expression +[.tabbed-example] +===== +[.include-with-neo4j-code] +====== +Query:: ++ +[source,cypher] +---- +MATCH (in:Client)-[:MAKES]->(t:Transaction) +RETURN CASE t.ibanNumber + WHEN in["mainAccount"] THEN "used main account" + ELSE "used different account" +END AS check +---- + +Description of the returned code:: + +`WHEN in["mainAccount"] INTEGER` is deprecated. It is replaced by `WHEN ++`in`++["mainAccount"] INTEGER`. + +Suggestions for improvement:: +To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: ++ +[source,cypher] +---- +MATCH (in:Client)-[:MAKES]->(t:Transaction) +RETURN CASE t.ibanNumber + WHEN `in`["mainAccount"] THEN "used main account" + ELSE "used different account" +END AS check +---- +====== [.include-with-GQLSTATUS-deprecated-with-replacement] ====== Query:: From 6ce63a43c8344c32eee52f46f1cfc2dd85de4156 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 30 Oct 2024 14:59:09 +0000 Subject: [PATCH 3/7] Update modules/ROOT/pages/notifications/all-notifications.adoc Co-authored-by: Hannes Voigt <30618026+hvub@users.noreply.github.com> --- modules/ROOT/pages/notifications/all-notifications.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/notifications/all-notifications.adoc b/modules/ROOT/pages/notifications/all-notifications.adoc index ab9ec28a..58d15207 100644 --- a/modules/ROOT/pages/notifications/all-notifications.adoc +++ b/modules/ROOT/pages/notifications/all-notifications.adoc @@ -2021,7 +2021,7 @@ warn: feature deprecated without replacement. ====== ===== -.Using an unescaped variable named 'where' in node +.Using an unescaped variable named 'where' in a node pattern [.tabbed-example] ===== [.include-with-neo4j-code] From fb570980c17bd5ad5a894a0260eaba696c5cc03a Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 30 Oct 2024 14:59:27 +0000 Subject: [PATCH 4/7] Update modules/ROOT/pages/notifications/all-notifications.adoc Co-authored-by: Hannes Voigt <30618026+hvub@users.noreply.github.com> --- modules/ROOT/pages/notifications/all-notifications.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/notifications/all-notifications.adoc b/modules/ROOT/pages/notifications/all-notifications.adoc index 58d15207..4a01d621 100644 --- a/modules/ROOT/pages/notifications/all-notifications.adoc +++ b/modules/ROOT/pages/notifications/all-notifications.adoc @@ -2320,7 +2320,7 @@ END AS standardsName ====== ===== -.Using an unescaped variable named `contains` for relationships in addition or subtraction operations within a `WHEN` operand in a simple `CASE` expression +.Using an unescaped variable named `contains` in addition operations within a `WHEN` operand in a simple `CASE` expression [.tabbed-example] ===== [.include-with-neo4j-code] From 567aa302b070972b2ed30ca4ad8de248319c5f4a Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 30 Oct 2024 14:59:33 +0000 Subject: [PATCH 5/7] Update modules/ROOT/pages/notifications/all-notifications.adoc Co-authored-by: Hannes Voigt <30618026+hvub@users.noreply.github.com> --- modules/ROOT/pages/notifications/all-notifications.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/notifications/all-notifications.adoc b/modules/ROOT/pages/notifications/all-notifications.adoc index 4a01d621..bb921b18 100644 --- a/modules/ROOT/pages/notifications/all-notifications.adoc +++ b/modules/ROOT/pages/notifications/all-notifications.adoc @@ -2390,7 +2390,7 @@ END AS check ====== ===== -.Using an unescaped variable named `contains` for nodes in addition or subtraction operations within a `WHEN` operand in a simple `CASE` expression +.Using an unescaped variable named `contains` in subtraction operations within a `WHEN` operand in a simple `CASE` expression [.tabbed-example] ===== [.include-with-neo4j-code] From c834fd20016511d56d1e95f4569e8d81bdde491e Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 30 Oct 2024 15:05:57 +0000 Subject: [PATCH 6/7] replace backticks with single quotes --- .../pages/notifications/all-notifications.adoc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/ROOT/pages/notifications/all-notifications.adoc b/modules/ROOT/pages/notifications/all-notifications.adoc index bb921b18..d89afa6b 100644 --- a/modules/ROOT/pages/notifications/all-notifications.adoc +++ b/modules/ROOT/pages/notifications/all-notifications.adoc @@ -2036,7 +2036,7 @@ RETURN where ---- Description of the returned code:: -`(where {p: 5})` is deprecated. It is replaced by `(++`where`++ {p: 5})`. +'(where {p: 5})' is deprecated. It is replaced by '(++`where`++ {p: 5})'. Suggestions for improvement:: To continue using variables with this name, use backticks to escape the variable name: @@ -2091,7 +2091,7 @@ RETURN where ---- Description of the returned code:: -`-[where {p: 5}]-` is deprecated. It is replaced by `-[++`where`++ {p: 5}]-`. +'-[where {p: 5}]-' is deprecated. It is replaced by '-[++`where`++ {p: 5}]-'. Suggestions for improvement:: To continue using variables with this name, use backticks to escape the variable name: @@ -2147,7 +2147,7 @@ RETURN listOfBooleans + m:A ---- Description of the returned code:: -`... + m:A` is deprecated. It is replaced by `... + (m:A)`. +'... + m:A' is deprecated. It is replaced by '... + (m:A)'. Suggestions for improvement:: Parenthesize the label expression predicate on the right-hand side of `+`: @@ -2206,7 +2206,7 @@ RETURN listOfBooleans + r:C|D ---- Description of the returned code:: -`... + r:C|D` is deprecated. It is replaced by `... + (r:C|D)`. +'... + r:C|D' is deprecated. It is replaced by '... + (r:C|D)'. Suggestions for improvement:: Parenthesize the label expression predicate on the right-hand side of `+`: @@ -2268,7 +2268,7 @@ END AS standardsName ---- Description of the returned code:: -`WHEN is :: INTEGER` is deprecated. It is replaced by `WHEN ++`is`++ :: INTEGER`. +'WHEN is :: INTEGER' is deprecated. It is replaced by 'WHEN ++`is`++ :: INTEGER'. Suggestions for improvement:: To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: @@ -2338,7 +2338,7 @@ END AS check ---- Description of the returned code:: -`WHEN contains + 1 INTEGER` is deprecated. It is replaced by `WHEN ++`contains`++ + 1 INTEGER`. +'WHEN contains + 1 INTEGER' is deprecated. It is replaced by 'WHEN ++`contains`++ + 1 INTEGER'. Suggestions for improvement:: To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: @@ -2409,7 +2409,7 @@ END AS check Description of the returned code:: -`WHEN contains - 1 INTEGER` is deprecated. It is replaced by `WHEN ++`contains`++ - 1 INTEGER`. +'WHEN contains - 1 INTEGER' is deprecated. It is replaced by 'WHEN ++`contains`++ - 1 INTEGER'. Suggestions for improvement:: To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: @@ -2480,7 +2480,7 @@ END AS check Description of the returned code:: -`WHEN in[0] INTEGER` is deprecated. It is replaced by `WHEN ++`in`++[0] INTEGER`. +'WHEN in[0] INTEGER' is deprecated. It is replaced by 'WHEN ++`in`++[0] INTEGER'. Suggestions for improvement:: To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: @@ -2550,7 +2550,7 @@ END AS check Description of the returned code:: -`WHEN in["mainAccount"] INTEGER` is deprecated. It is replaced by `WHEN ++`in`++["mainAccount"] INTEGER`. +'WHEN in["mainAccount"] INTEGER' is deprecated. It is replaced by 'WHEN ++`in`++["mainAccount"] INTEGER'. Suggestions for improvement:: To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name: From 1f4e38edcb9942048f74f2cc9f4c297a4104b27f Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Wed, 30 Oct 2024 15:08:42 +0000 Subject: [PATCH 7/7] change plural to singural in relationship patterns --- modules/ROOT/pages/notifications/all-notifications.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/notifications/all-notifications.adoc b/modules/ROOT/pages/notifications/all-notifications.adoc index d89afa6b..f7c0a2f2 100644 --- a/modules/ROOT/pages/notifications/all-notifications.adoc +++ b/modules/ROOT/pages/notifications/all-notifications.adoc @@ -2077,7 +2077,7 @@ RETURN `where`.p ====== ===== -.Using an unescaped variable named 'where' in relationship patterns +.Using an unescaped variable named 'where' in a relationship pattern [.tabbed-example] ===== [.include-with-neo4j-code]