[Libpqxx-general] Prepared statements parameters inconsistency
Jeroen T. Vermeulen
jtv at xs4all.nl
Wed Jul 22 20:06:33 UTC 2009
On Tue, July 14, 2009 22:05, Trigve Siver wrote:
> Maybe some new parameter could be added to "prepare" function signaling if
> we want paramater guessing or not (But there could be some other problems
> with custom types where Oid's are known only in backend). Anyway
> workaround for this is explicit type casting like "UPDATE customer SET id
> = $1::VAARCHAR, id_sub = $2::VARCHAR WHERE (id = $1 AND id_sub = $2)".
Thanks for digging deeper and reporting. Maybe this is in fact the best
way around it...
Jeroen
More information about the Libpqxx-general
mailing list