On Sat, April 7, 2007 03:31, John Mudd wrote:
> In order to handle prepared statements dynamically, I need to use the
> second syntax.  Is there an easy way to know how many parameters are
> in the SQL. Or should I just manually count the number of "$"
> characters?

There's no other way to figure that out at the moment, I'm afraid... 
Fixing that will require some changes in how the whole thing works.  We
could make the "invocation factory" in transaction_base::prepared() look
up the statement definition right at the start, and then you could ask
invocation() how many more parameters were expected.


Jeroen


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

Reply via email to