Open maxlambrecht opened 1 year ago
I have encountered a syntax error when using the squirrel.Or construct with Postgres:
squirrel.Or
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
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