-
Notifications
You must be signed in to change notification settings - Fork 35
Errors and deprecations for graph references #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8845a33
Document new GQLSTATUS codes 51N76 and 42NAA
Lojjs dcee79f
Document changes to graph reference deprecations.
Lojjs 282921f
Improve 42NAA docs:
Lojjs d46ce14
Update links to point at Cypher 25 docs for graph references (to be p…
Lojjs f8c059a
editorial updates
renetapopova 23a676d
replace the labels with text
renetapopova e4b94c4
further editorial updates
renetapopova e1534f0
bring back the labels
renetapopova 64cee37
remove the valid label
renetapopova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| = 42NAA | ||
|
|
||
| == Status description | ||
| error: syntax error or access rule violation - incorrectly formatted graph reference. Incorrectly formatted graph reference `{ <<input>> }`. Expected a single quoted or unquoted identifier. Separate name parts should not be quoted individually. | ||
|
|
||
| == Explanation | ||
| As of Cypher 25, database names and aliases cannot include name parts that are quoted individually. | ||
| Either the whole name must be quoted, or the whole name must be unquoted. | ||
| A recommended approach, which is consistent between different commands and Cypher versions, is to send in the database name or alias as a parameter rather than a string literal. | ||
|
|
||
| == Example scenario | ||
| For example, try to create a database with using the following Cypher 25 command: | ||
|
|
||
| [source,cypher] | ||
| ---- | ||
| CYPHER 25 CREATE ALIAS `foo`.`bar` FOR DATABASE baz | ||
| ---- | ||
|
|
||
| An error will be thrown with GQLSTATUS 42NAA and the following status description: | ||
|
|
||
| [source] | ||
| ---- | ||
| error: syntax error or access rule violation - incorrectly formatted graph reference. Incorrectly formatted graph reference '`foo`.`bar`'. Expected a single quoted or unquoted identifier. Separate name parts should not be quoted individually. | ||
| ---- | ||
|
|
||
| == Possible solutions | ||
|
|
||
| To resolve this issue, the preferred way is to replace the alias name with a parameter: | ||
|
|
||
| .Parameters | ||
| [source, parameters] | ||
| ---- | ||
| { | ||
| "aliasName": "foo.bar" | ||
| } | ||
| ---- | ||
|
|
||
| .Query | ||
| [source, cypher] | ||
| ---- | ||
| CREATE ALIAS $aliasName FOR DATABASE baz | ||
| ---- | ||
|
|
||
| Alternatively, if you use a string literal, the correct quoting for Cypher 25 will either be | ||
|
|
||
| [source,cypher] | ||
| ---- | ||
| CYPHER 25 CREATE ALIAS `foo.bar` FOR DATABASE baz | ||
| ---- | ||
|
|
||
| or | ||
|
|
||
| [source,cypher] | ||
| ---- | ||
| CYPHER 25 CREATE ALIAS foo.bar FOR DATABASE baz | ||
| ---- | ||
|
|
||
| ifndef::backend-pdf[] | ||
| [discrete.glossary] | ||
| == Glossary | ||
|
|
||
| include::partial$glossary.adoc[] | ||
| endif::[] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| = 51N76 | ||
|
|
||
|
|
||
| == Status description | ||
| error: system configuration or operation exception - upgrade failed. The upgrade to a new Neo4j version failed. | ||
|
|
||
| == Explanation | ||
| This error code can occur during a Neo4j upgrade to a new version in the rare case when something in the user's setup or DBMS environment prevents the upgrade. | ||
| The error will be accompanied by a cause with a more concrete GQLSTATUS, describing what the user needs to change before retrying the upgrade. | ||
l-heemann marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ifndef::backend-pdf[] | ||
| [discrete.glossary] | ||
| == Glossary | ||
|
|
||
| include::partial$glossary.adoc[] | ||
| endif::[] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.