Skip to content

Commit 5a31a72

Browse files
Error codes: 42I65 and 42I66 (#375)
Error codes introduced in [PR Formatting temporals](neo-technology/neo4j#32184) --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 0d91957 commit 5a31a72

File tree

4 files changed

+76
-1
lines changed

4 files changed

+76
-1
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@
259259
**** xref:errors/gql-errors/42I62.adoc[]
260260
**** xref:errors/gql-errors/42I63.adoc[]
261261
**** xref:errors/gql-errors/42I64.adoc[]
262+
**** xref:errors/gql-errors/42I65.adoc[]
263+
**** xref:errors/gql-errors/42I66.adoc[]
262264
**** xref:errors/gql-errors/42N00.adoc[]
263265
**** xref:errors/gql-errors/42N01.adoc[]
264266
**** xref:errors/gql-errors/42N02.adoc[]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:page-role: new-2025.09
2+
= 42I65
3+
4+
== Status description
5+
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>> }`.
6+
7+
== Example scenario
8+
9+
For example, when trying to format using a year character on a time-only type:
10+
11+
[source,cypher]
12+
----
13+
RETURN format(time(), "yyyy") AS formatted
14+
----
15+
16+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
17+
This error has a cause detailed in xref:errors/gql-errors/42I65.adoc[42I65] and status description:
18+
19+
20+
[source]
21+
----
22+
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`.
23+
----
24+
25+
26+
ifndef::backend-pdf[]
27+
[discrete.glossary]
28+
== Glossary
29+
30+
include::partial$glossary.adoc[]
31+
endif::[]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:page-role: new-2025.09
2+
= 42I66
3+
4+
== Status description
5+
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.
6+
7+
== Example scenario
8+
9+
For example, when formatting a duration:
10+
11+
[source,cypher]
12+
----
13+
RETURN format(duration("P1Y"), "y 'year")
14+
----
15+
16+
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
17+
This error has a cause detailed in xref:errors/gql-errors/42I66.adoc[42I66] and status description:
18+
19+
20+
[source]
21+
----
22+
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.
23+
----
24+
25+
26+
ifndef::backend-pdf[]
27+
[discrete.glossary]
28+
== Glossary
29+
30+
include::partial$glossary.adoc[]
31+
endif::[]

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,10 @@ Status description:: error: data exception - omitting mandatory field for proper
629629

630630
Status description:: error: data exception - index belongs to constraint. Index belongs to constraint `{ <<constrDescrOrName>> }`.
631631

632+
[role=label--new-2025.07]
632633
=== xref:errors/gql-errors/22NBD.adoc[22NBD]
633634

634-
Status description:: error: data exception - unsupported struct tag. Unsupported struct tag: 0x56. `{ <<value>> }`.
635+
Status description:: error: data exception - unsupported struct tag. Unsupported struct tag: `{ <<value>> }`.
635636

636637

637638
[[invalid-transaction-state]]
@@ -1056,6 +1057,16 @@ Status description:: error: syntax error or access rule violation - wrong subcla
10561057

10571058
Status description:: error: syntax error or access rule violation - unsupported operation. `{ <<msg>> }` currently not supported after `+NEXT+` `{ <<context>> }`.
10581059

1060+
[role=label--new-2025.09]
1061+
=== xref:errors/gql-errors/42I65.adoc[42I65]
1062+
1063+
Status description:: 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>> }`.
1064+
1065+
[role=label--new-2025.09]
1066+
=== xref:errors/gql-errors/42I66.adoc[42I66]
1067+
1068+
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.
1069+
10591070
[role=label--changed-2025.03]
10601071
=== xref:errors/gql-errors/42N00.adoc[42N00]
10611072

0 commit comments

Comments
 (0)