Skip to content

Commit 7500263

Browse files
Error codes: 42I65 and 42I66
1 parent 8456995 commit 7500263

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
= 42I65
2+
3+
== Status description
4+
error: syntax error or access rule violation - invalid pattern character. An invalid character is used in the pattern. Verify that all characters are supported by `{ <<valueType>> }`.
5+
6+
== Example scenario
7+
8+
For example, when trying to format using a year character on a time-only type:
9+
10+
[source,cypher]
11+
----
12+
RETURN format(time(), "yyyy") AS formatted
13+
----
14+
15+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
16+
This error has a cause detailed in xref:errors/gql-errors/42I65.adoc[42I65] and status description:
17+
18+
19+
[source]
20+
----
21+
error: syntax error or access rule violation - invalid pattern character. An invalid character is used in the pattern. Verify that all characters are supported by `ZONED TIME`.
22+
----
23+
24+
25+
ifndef::backend-pdf[]
26+
[discrete.glossary]
27+
== Glossary
28+
29+
include::partial$glossary.adoc[]
30+
endif::[]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
= 42I66
2+
3+
== Status description
4+
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.
5+
6+
== Example scenario
7+
8+
For example, when formatting a duration:
9+
10+
[source,cypher]
11+
----
12+
RETURN format(duration("P1Y"), "y 'year")
13+
----
14+
15+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
16+
This error has a cause detailed in xref:errors/gql-errors/42I66.adoc[42I66] and status description:
17+
18+
19+
[source]
20+
----
21+
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.
22+
----
23+
24+
25+
ifndef::backend-pdf[]
26+
[discrete.glossary]
27+
== Glossary
28+
29+
include::partial$glossary.adoc[]
30+
endif::[]

0 commit comments

Comments
 (0)