Skip to content

Commit e764183

Browse files
JoelBergstrandrenetapopova
authored andcommitted
Added error code 42I09 unsupported language feature
1 parent 5a31a72 commit e764183

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
= 42I09
2+
3+
== Status description
4+
error: syntax error or access rule violation - unsupported language feature. This query uses a feature that is not supported in Cypher { <<feat1>> }. To use this feature prefix the query with `CYPHER { <<feat2>> }` or set Cypher { <<feat2>> } as default language version.
5+
6+
== Example scenario
7+
8+
For example, when using `LET` in a Cypher 5 query:
9+
10+
[source,cypher]
11+
----
12+
CYPHER 5
13+
LET x = 1
14+
RETURN x
15+
----
16+
17+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
18+
This error has a cause detailed in xref:errors/gql-errors/42I09.adoc[42I09] and status description:
19+
20+
21+
[source]
22+
----
23+
error: syntax error or access rule violation - unsupported language feature. This query uses a feature that is not supported in Cypher 5. To use this feature prefix the query with `CYPHER 25` or set Cypher 25 as default language version.
24+
----
25+
26+
As well as a cause detailed in xref:errors/gql-errors/42I06.adoc[42I06] and status description:
27+
28+
[source]
29+
----
30+
error: syntax error or access rule violation - invalid input. Invalid input 'LET', expected: 'ALTER', 'ORDER BY', 'CALL', 'USING PERIODIC COMMIT', 'CREATE', 'LOAD CSV', 'START DATABASE', 'STOP DATABASE', 'DEALLOCATE', 'DELETE', 'DENY', 'DETACH', 'DROP', 'DRYRUN', 'FINISH', 'FOREACH', 'GRANT', 'INSERT', 'LIMIT', 'MATCH', 'MERGE', 'NODETACH', 'OFFSET', 'OPTIONAL', 'REALLOCATE', 'REMOVE', 'RENAME', 'RETURN', 'REVOKE', 'ENABLE SERVER', 'SET', 'SHOW', 'SKIP', 'TERMINATE', 'UNWIND', 'USE' or 'WITH'.
31+
----
32+
33+
34+
ifndef::backend-pdf[]
35+
[discrete.glossary]
36+
== Glossary
37+
38+
include::partial$glossary.adoc[]
39+
endif::[]

0 commit comments

Comments
 (0)