We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SELECT EXISTS (...)
The following SQL throws an error:
row := r.db.QueryRow(` SELECT EXISTS ( SELECT 1 FROM users WHERE id = ? ); `, id)
Syntax error near select exists (
I tried the exact same code on a real MySQL database, and it worked fine.
1.20
github.com/proullon/ramsql v0.0.0-20230224205054-8ff679dbf7aa
The text was updated successfully, but these errors were encountered:
Also, some possible alternatives, like...
row := r.db.QueryRow(` SELECT COUNT(id) > 0 FROM users WHERE id = ?; `, id)
Syntax error near {6 >}\n
... and...
row := r.db.QueryRow(` SELECT COUNT(1) > 0 FROM users WHERE EXISTS ( SELECT 1 FROM users WHERE id = ? ); `, id)
Syntax error near ( 1 )
...didn't work.
Sorry, something went wrong.
No branches or pull requests
The following SQL throws an error:
I tried the exact same code on a real MySQL database, and it worked fine.
1.20
github.com/proullon/ramsql v0.0.0-20230224205054-8ff679dbf7aa
The text was updated successfully, but these errors were encountered: