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
squirrel.Or
I have encountered a syntax error when using the squirrel.Or construct with Postgres:
squirrel.Or{ squirrel.Eq{"field_1": value}, squirrel.Eq{"field_2": value}, }
The following error occurs: "ERROR: syntax error at or near 'OR' (SQLSTATE 42601)"
squirrel.Or{ squirrel.Expr("field_1 = $1 OR field_2 = $2", value, value), }
Postgres version: 15 Squirrel version: v1.5.4
15
v1.5.4
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
I have encountered a syntax error when using the
squirrel.Or
construct with Postgres:The following error occurs: "ERROR: syntax error at or near 'OR' (SQLSTATE 42601)"
Workaround:
Additional Information:
Postgres version:
15
Squirrel version:
v1.5.4
The text was updated successfully, but these errors were encountered: