Private query fns ignore the result value
codahale opened this issue · 3 comments
codahale commented
I have a Postgres query which looks like this:
-- :name add-thing :<! :1
update things
set count = count + 1
where id = :id
returning count;
It works fine, but when I try to make the query fn private (i.e., using :name-
), it ignores the :1
and treats the result value as :raw
.
csummers commented
Nice catch--definitely a bug. I've fixed this in master and it will roll in the next release. Thanks for the report!
csummers commented
This is released in 0.4.6. Please confirm that it fixes the issue for you. Thanks!
codahale commented
Works great, thanks!