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
Alongside with #286 using Or or And affects wrong placeholders.
Or
And
This test reproduces the problem.
func TestSelectSubqueryInConjunctionPlaceholderNumbering(t *testing.T) { subquery := Select("a").Where(Eq{"b": 1}).Prefix("EXISTS(").Suffix(")").PlaceholderFormat(Dollar) sql, args, err := Select("*"). Where(Or{subquery}). Where("c = ?", 2). PlaceholderFormat(Dollar). ToSql() assert.NoError(t, err) expectedSql := "SELECT * WHERE (EXISTS( SELECT a WHERE b = $1 )) AND c = $2" assert.Equal(t, expectedSql, sql) assert.Equal(t, []interface{}{1, 2}, args) }
The text was updated successfully, but these errors were encountered:
#301 Conjunction produces wrong dollar parameter placeholders (#302)
def598c
@lann hello! Fix was merged into the master branch. Can you make a bugfix release?
Sorry, something went wrong.
Sure: v1.5.2
No branches or pull requests
Alongside with #286 using
Or
orAnd
affects wrong placeholders.This test reproduces the problem.
The text was updated successfully, but these errors were encountered: