Skip to content

Commit 1cd7349

Browse files
Added error code 42I67 unsupported language feature (#381)
Adds error 42I67 introduced in [PR](https://github.com/pulls) --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 5a31a72 commit 1cd7349

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@
261261
**** xref:errors/gql-errors/42I64.adoc[]
262262
**** xref:errors/gql-errors/42I65.adoc[]
263263
**** xref:errors/gql-errors/42I66.adoc[]
264+
**** xref:errors/gql-errors/42I67.adoc[]
264265
**** xref:errors/gql-errors/42N00.adoc[]
265266
**** xref:errors/gql-errors/42N01.adoc[]
266267
**** xref:errors/gql-errors/42N02.adoc[]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
:page-role: new-2025.09
2+
= 42I67
3+
4+
== Status description
5+
error: syntax error or access rule violation - unsupported language feature. The query is a valid `CYPHER { <<feat>>2 }` query, but it is run in `CYPHER { <<feat>>1 }`. Consider changing the database default Cypher version using `ALTER DATABASE SET DEFAULT LANGUAGE` or prefix the query with `CYPHER { <<feat>>2 }`.
6+
7+
== Example scenario
8+
9+
For example, when using `LET` in a Cypher 5 query:
10+
11+
[source,cypher]
12+
----
13+
CYPHER 5
14+
LET x = 1
15+
RETURN x
16+
----
17+
18+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
19+
This error has a cause detailed in xref:errors/gql-errors/42I67.adoc[42I67] and status description:
20+
21+
22+
[source]
23+
----
24+
error: syntax error or access rule violation - unsupported language feature. The query is a valid `CYPHER 25` query, but it is run in `CYPHER 5`. Consider changing the database default Cypher version using `ALTER DATABASE SET DEFAULT LANGUAGE` or prefix the query with `CYPHER 25`.
25+
----
26+
27+
As well as a cause detailed in xref:errors/gql-errors/42I06.adoc[42I06] and status description:
28+
29+
[source]
30+
----
31+
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'.
32+
----
33+
34+
35+
ifndef::backend-pdf[]
36+
[discrete.glossary]
37+
== Glossary
38+
39+
include::partial$glossary.adoc[]
40+
endif::[]

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,11 @@ Status description:: error: syntax error or access rule violation - invalid patt
10671067

10681068
Status description:: error: syntax error or access rule violation - pattern parsing failed. Pattern parsing failed. Make sure that an even number of escapes are used in the pattern.
10691069

1070+
[role=label--new-2025.09]
1071+
=== xref:errors/gql-errors/42I67.adoc[42I67]
1072+
1073+
Status description:: error: syntax error or access rule violation - unsupported language feature. The query is a valid `CYPHER { <<feat>>2 }` query, but it is run in `CYPHER { <<feat>>1 }`. Consider changing the database default Cypher version using `ALTER DATABASE SET DEFAULT LANGUAGE` or prefix the query with `CYPHER { <<feat>>2 }`.
1074+
10701075
[role=label--changed-2025.03]
10711076
=== xref:errors/gql-errors/42N00.adoc[42N00]
10721077

0 commit comments

Comments
 (0)