That's exactly the problem. I run the same program on a 8.x client,
and prepared queries now work fine!

Thanks for your help.
Regards,
Khoa


> Oh, I think I get it...  As I said, this stuff gets complicated sometimes.
>  There is a *fourth* factor influencing this: libpq 7.4 doesn't support
> querying of the server version, so libpqxx can't determine whether the
> server supports prepared statements.  That in itself is no problem:
> libpqxx will simulate them.  Preparation will be skipped, and execution
> will just issue a copy of your SQL statement with parameters substituted.
> But IIRC it was possible in 2.6.8 for these two bits of logic to disagree
> on which course should be followed.
>
> That 2.6.9 pre-release I posted earlier also fixes this problem (and in
> any case knows how to guess the server version if libpq doesn't support
> querying it).  You could either try that, or try building against an 8.x
> version of libpq.
>
>
> Jeroen
>
>
>
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to