Skip to content
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

Does not support for "IF NOT EXISTS" syntax for DEFINE statements #7

Closed
lylejohnson opened this issue May 29, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@lylejohnson
Copy link

Version 1.1.3 of surql-gen does not support the "IF NOT EXISTS" syntax for DEFINE statements, introduced in SurrealDB version 1.3.0. It errors out as follows:

[Error: Parse error: Failed to parse query at line 5 column 16 expected ON
  |
5 | DEFINE USER IF NOT EXISTS myusername ON DATABASE PASSWORD 'secret' ROLES EDITOR;
  |
] {
  code: 'GenericFailure'
}
@lylejohnson lylejohnson changed the title Add support for "IF NOT EXISTS" syntax for DEFINE statements Does not support for "IF NOT EXISTS" syntax for DEFINE statements May 29, 2024
@sebastianwessel sebastianwessel self-assigned this May 31, 2024
@sebastianwessel sebastianwessel added bug Something isn't working labels May 31, 2024
@sebastianwessel
Copy link
Owner

The issue should now be resolved.
See Version 2 Release Note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants