sqlx
sqlx copied to clipboard
fix: bindArray on SELECT from VALUES list
-
fixBound
currently assumes named var in VALUES is only from INSERT -
bindArray
is not populating the right number of placeholders
Ideally the regex should be something like: (?<!(?i)into)\W+(?i)VALUES\s*\(
but Golang regex doesn't support look around
WDYT about merging this? @jmoiron Together, this issue seems to be solved.https://github.com/jmoiron/sqlx/issues/796
@jmoiron We are suffering a lot from this bug, please merge.
@jmoiron +1 Our destiny depends on this fix. Please review and merge if possible. Thanks.
I'd also love to see this merged so #796 could be solved.