Correction: My code gives this exception:
Exception: Unknown prepared statement '123'
Here's what I built:
postgresql-base-8.2.3.tar.bz2
postgresql-docs-8.2.3.tar.bz2
postgresql-opt-8.2.3.tar.bz2
postgresql-test-8.2.3.tar.bz2
libpqxx-2.6.9.tar.gz
$ psql --version
psql (PostgreSQL) 8.2.3
On 4/4/07, Jeroen T. Vermeulen <[EMAIL PROTECTED]> wrote:
> 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
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general