[Libpqxx-general] Unnamed prepared statements

Trigve Siver trigves at yahoo.com
Fri Aug 7 20:43:34 UTC 2009


Hi there,
I've been trying to find where my problem with unnamed preparedt stmts lie. Oh christ, have tried it for 5 hours. My problem is bit complicated because I cannot simple isolate it. But I try to describe it. I'm preparing (and using it) unnamed prepared statement (UPS) with definition named def1 (with some parameters). Next I create another UPS without params with definition def2 and call it. Then I create the same UPS (as the first) with definition of def1 and call it and I've got the error "unnamed prepared statement does not exist" from Postgres. This is some basic scheme in which I encounter the problem. The fix is attached.  I found that in rev. 1553 there was some update in UPS's. I've added "i->second.registered = false;" in "pqxx::prepare::declaration pqxx::connection_base::prepare". I havent go deeper but it seems that it works. So can someone shed some light on this?

Thanks

Trigve



      
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: prep.txt
URL: <http://pgfoundry.org/pipermail/libpqxx-general/attachments/20090807/87c1d53b/attachment.txt>


More information about the Libpqxx-general mailing list