bind vars generation failed when use both WHERE + IN
and HAVING
.
#65
Labels
bug
Something isn't working
WHERE + IN
and HAVING
.
#65
If I use something like
WHERE id in (?)
andHAVING count(id) = ?
at the same time, it does not compiled expectedly.The line below is called if there is
in (?)
on SQL which is built bybuildSelectSQL()
, but there is another?
forHAVING
andsqlx.In()
returns error "number of bindVars exceeds arguments". (I cannot sure since I just checked it onpop
code and did not get intosqlx
code anyway.)pop/sql_builder.go
Line 59 in 8d249c6
IMHO, we can move this lines into
buildWhereClauses()
. Can I open a PR for this?The text was updated successfully, but these errors were encountered: