Skip to content

Commit 875ff0b

Browse files
Adding 42I63 wrong clause order
1 parent bc5ce3c commit 875ff0b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@
253253
**** xref:errors/gql-errors/42I59.adoc[]
254254
**** xref:errors/gql-errors/42I60.adoc[]
255255
**** xref:errors/gql-errors/42I61.adoc[]
256+
**** xref:errors/gql-errors/42I63.adoc[]
256257
**** xref:errors/gql-errors/42N00.adoc[]
257258
**** xref:errors/gql-errors/42N01.adoc[]
258259
**** xref:errors/gql-errors/42N02.adoc[]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
= 42I63
2+
3+
== Status description
4+
error: syntax error or access rule violation - wrong subclause order. `ORDER BY`, `{ <<clause>> }` and `LIMIT` can only be used in this order in `RETURN`.
5+
6+
== Example scenario
7+
8+
For example, try to use `ORDER BY` after `SKIP` and `LIMIT`:
9+
10+
[source,cypher]
11+
----
12+
UNWIND [3,5,1,3,7,10] AS x
13+
RETURN x
14+
SKIP 2
15+
ORDER BY x
16+
----
17+
18+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42000.adoc[42000].
19+
This error has a cause detailed in xref:errors/gql-errors/42I63.adoc[42I63] and status description:
20+
21+
22+
[source]
23+
----
24+
error: syntax error or access rule violation - wrong subclause order. `ORDER BY`, `SKIP` and `LIMIT` can only be used in this order in `RETURN`.
25+
----
26+
27+
28+
ifndef::backend-pdf[]
29+
[discrete.glossary]
30+
== Glossary
31+
32+
include::partial$glossary.adoc[]
33+
endif::[]

0 commit comments

Comments
 (0)