@@ -2021,6 +2021,316 @@ warn: feature deprecated without replacement.
20212021======
20222022=====
20232023
2024+ .Using an unescaped variable named 'where' in node or relationship patterns
2025+ [.tabbed-example]
2026+ =====
2027+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2028+ ======
2029+ Query::
2030+ +
2031+ [source,cypher]
2032+ ----
2033+ MATCH (where {p: 5})
2034+ RETURN where
2035+ ----
2036+
2037+ Returned GQLSTATUS code::
2038+ 01N01
2039+
2040+ Returned status description::
2041+ warn: feature deprecated with replacement.
2042+ `(where {p: 5})` is deprecated.
2043+ It is replaced by `(++`where`++ {p: 5})`.
2044+
2045+ Suggestions for improvement::
2046+ To continue using variables with this name, use backticks to escape the variable name:
2047+ +
2048+ [source,cypher]
2049+ ----
2050+ MATCH (`where` {p: 5})
2051+ RETURN `where`.p
2052+ ----
2053+ ======
2054+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2055+ ======
2056+ Query::
2057+ +
2058+ [source,cypher]
2059+ ----
2060+ MATCH ()-[where {p: 5}]->()
2061+ RETURN where
2062+ ----
2063+
2064+ Returned GQLSTATUS code::
2065+ 01N01
2066+
2067+ Returned status description::
2068+ warn: feature deprecated with replacement.
2069+ `-[where {p: 5}]-` is deprecated.
2070+ It is replaced by `-[++`where`++ {p: 5}]-`.
2071+
2072+ Suggestions for improvement::
2073+ To continue using variables with this name, use backticks to escape the variable name:
2074+ +
2075+ [source,cypher]
2076+ ----
2077+ MATCH ()-[`where` {p: 5}]->()
2078+ RETURN `where`.p
2079+ ----
2080+ ======
2081+ =====
2082+
2083+ .Using an unparenthesized label expression predicate as the right-hand side operand of `+`
2084+ [.tabbed-example]
2085+ =====
2086+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2087+ ======
2088+ Query::
2089+ +
2090+ [source,cypher]
2091+ ----
2092+ MATCH (n)-[r]->(m)
2093+ WITH m, n.truthCodes AS listOfBooleans
2094+ RETURN listOfBooleans + m:A
2095+ ----
2096+
2097+ Returned GQLSTATUS code::
2098+ 01N01
2099+
2100+ Returned status description::
2101+ warn: feature deprecated with replacement.
2102+ `... + m:A` is deprecated.
2103+ It is replaced by `... + (m:A)`.
2104+
2105+ Suggestions for improvement::
2106+ Parenthesize the label expression predicate on the right-hand side of `+`:
2107+ +
2108+ [source,cypher]
2109+ ----
2110+ MATCH (n)-[r]->(m)
2111+ WITH m, n.truthCodes AS listOfBooleans
2112+ RETURN listOfBooleans + (m:A)
2113+ ----
2114+ ======
2115+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2116+ ======
2117+ Query::
2118+ +
2119+ [source,cypher]
2120+ ----
2121+ MATCH (n)-[r]->(m)
2122+ WITH r, n.truthCodes AS listOfBooleans
2123+ RETURN listOfBooleans + r:C|D
2124+ ----
2125+
2126+ Returned GQLSTATUS code::
2127+ 01N01
2128+
2129+ Returned status description::
2130+ warn: feature deprecated with replacement.
2131+ `... + r:C|D` is deprecated.
2132+ It is replaced by `... + (r:C|D)`.
2133+
2134+ Suggestions for improvement::
2135+ Parenthesize the label expression predicate on the right-hand side of `+`:
2136+ +
2137+ [source,cypher]
2138+ ----
2139+ MATCH (n)-[r]->(m)
2140+ WITH r, n.truthCodes AS listOfBooleans
2141+ RETURN listOfBooleans + (r:C|D)
2142+ ----
2143+ ======
2144+ =====
2145+
2146+ .Using an unescaped variable named `is` as a `WHEN` operand in a simple `CASE` expression
2147+ [.tabbed-example]
2148+ =====
2149+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2150+ ======
2151+ Query::
2152+ +
2153+ [source,cypher]
2154+ ----
2155+ MATCH (n)
2156+ WITH n, n.internationalStandard AS is
2157+ RETURN CASE n
2158+ WHEN is :: INTEGER THEN "ISO/IEC" + is
2159+ ELSE is
2160+ END AS standardsName
2161+ ----
2162+
2163+ Returned GQLSTATUS code::
2164+ 01N01
2165+
2166+ Returned status description::
2167+ warn: feature deprecated with replacement.
2168+ `WHEN is pass:[::] INTEGER` is deprecated.
2169+ It is replaced by `WHEN ++`is`++ pass:[::] INTEGER`.
2170+
2171+ Suggestions for improvement::
2172+ To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name:
2173+ +
2174+ [source,cypher]
2175+ ----
2176+ MATCH (n)
2177+ WITH n, n.internationalStandard AS `is`
2178+ RETURN CASE n
2179+ WHEN `is` :: INTEGER THEN "ISO/IEC" + `is`
2180+ ELSE `is`
2181+ END AS standardsName
2182+ ----
2183+ ======
2184+ =====
2185+
2186+ .Using an unescaped variable named `contains` in addition or subtraction operations within a `WHEN` operand in a simple `CASE` expression
2187+ [.tabbed-example]
2188+ =====
2189+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2190+ ======
2191+ Query::
2192+ +
2193+ [source,cypher]
2194+ ----
2195+ MATCH p = (:A)-[:HAS]->(:B)
2196+ WITH p, size(relationships(p)) AS contains
2197+ RETURN CASE size(nodes(p))
2198+ WHEN contains + 1 THEN "okay"
2199+ ELSE "not okay"
2200+ END AS check
2201+ ----
2202+
2203+ Returned GQLSTATUS code::
2204+ 01N01
2205+
2206+ Returned status description::
2207+ warn: feature deprecated with replacement.
2208+ `WHEN contains + 1 INTEGER` is deprecated.
2209+ It is replaced by `WHEN ++`contains`++ + 1 INTEGER`.
2210+
2211+ Suggestions for improvement::
2212+ To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name:
2213+ +
2214+ [source,cypher]
2215+ ----
2216+ MATCH p = (:A)-[:HAS]->(:B)
2217+ WITH p, size(relationships(p)) AS `contains`
2218+ RETURN CASE size(nodes(p))
2219+ WHEN `contains` + 1 THEN "okay"
2220+ ELSE "not okay"
2221+ END AS check
2222+ ----
2223+ ======
2224+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2225+ ======
2226+ Query::
2227+ +
2228+ [source,cypher]
2229+ ----
2230+ MATCH p = (:A)-[:HAS]->(:B)
2231+ WITH p, size(nodes(p)) AS contains
2232+ RETURN CASE size(relationships(p))
2233+ WHEN contains - 1 THEN "okay"
2234+ ELSE "not okay"
2235+ END AS check
2236+ ----
2237+
2238+ Returned GQLSTATUS code::
2239+ 01N01
2240+
2241+ Returned status description::
2242+ warn: feature deprecated with replacement.
2243+ `WHEN contains - 1 INTEGER` is deprecated.
2244+ It is replaced by `WHEN ++`contains`++ - 1 INTEGER`.
2245+
2246+ Suggestions for improvement::
2247+ To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name:
2248+ +
2249+ [source,cypher]
2250+ ----
2251+ MATCH p = (:A)-[:HAS]->(:B)
2252+ WITH p, size(nodes(p)) AS `contains`
2253+ RETURN CASE size(relationships(p))
2254+ WHEN `contains` - 1 THEN "okay"
2255+ ELSE "not okay"
2256+ END AS check
2257+ ----
2258+ ======
2259+ =====
2260+
2261+ .Using the `[]` operator on an unescaped variable named `in` within a `WHEN` operand in a simple `CASE` expression
2262+ [.tabbed-example]
2263+ =====
2264+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2265+ ======
2266+ Query::
2267+ +
2268+ [source,cypher]
2269+ ----
2270+ MATCH (c:Client)-[:MAKES]->(t:Transaction)
2271+ WITH t, c.ibanNumbers AS in
2272+ RETURN CASE t.ibanNumber
2273+ WHEN in[0] THEN "used main account"
2274+ ELSE "used different account"
2275+ END AS check
2276+ ----
2277+
2278+ Returned GQLSTATUS code::
2279+ 01N01
2280+
2281+ Returned status description::
2282+ warn: feature deprecated with replacement.
2283+ `WHEN in[0] INTEGER` is deprecated.
2284+ It is replaced by `WHEN ++`in`++[0] INTEGER`.
2285+
2286+ Suggestions for improvement::
2287+ To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name:
2288+ +
2289+ [source,cypher]
2290+ ----
2291+ MATCH (c:Client)-[:MAKES]->(t:Transaction)
2292+ WITH t, c.ibanNumbers AS `in`
2293+ RETURN CASE t.ibanNumber
2294+ WHEN `in`[0] THEN "used main account"
2295+ ELSE "used different account"
2296+ END AS check
2297+ ----
2298+ ======
2299+ [.include-with-GQLSTATUS-deprecated-with-replacement]
2300+ ======
2301+ Query::
2302+ +
2303+ [source,cypher]
2304+ ----
2305+ MATCH (in:Client)-[:MAKES]->(t:Transaction)
2306+ RETURN CASE t.ibanNumber
2307+ WHEN in["mainAccount"] THEN "used main account"
2308+ ELSE "used different account"
2309+ END AS check
2310+ ----
2311+
2312+ Returned GQLSTATUS code::
2313+ 01N01
2314+
2315+ Returned status description::
2316+ warn: feature deprecated with replacement.
2317+ `WHEN in["mainAccount"] INTEGER` is deprecated.
2318+ It is replaced by `WHEN ++`in`++["mainAccount"] INTEGER`.
2319+
2320+ Suggestions for improvement::
2321+ To continue using variables with this name in simple `CASE` expressions, use backticks to escape the variable name:
2322+ +
2323+ [source,cypher]
2324+ ----
2325+ MATCH (in:Client)-[:MAKES]->(t:Transaction)
2326+ RETURN CASE t.ibanNumber
2327+ WHEN `in`["mainAccount"] THEN "used main account"
2328+ ELSE "used different account"
2329+ END AS check
2330+ ----
2331+ ======
2332+ =====
2333+
20242334[#_deprecated-notifications-without-replacement]
20252335=== Deprecated features without a future replacement
20262336
0 commit comments