On Wed, April 4, 2007 21:57, John Mudd wrote:

> But in my application I have to assemple the prepared statement
> dynamically from a given list of values.  I tried the following but
> got "Exception: Unknown prepared statement 'p1".  Any suggestions?
>
> prepare::invocation xx = T->prepared("p1");
> xx("123");
> xx("10");
> xx("now");
> xx.exec();

Hmmm...  AFAICS that ought to work.  Which versions of libpqxx, libpq, and
the server are you using?


Jeroen


_______________________________________________
Libpqxx-general mailing list
Libpqxx-general@gborg.postgresql.org
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to