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?
C.prepare("p1", "insert into x (num) values ($1)")
("varchar", prepare::treat_string);
prepare::declaration D =
C.prepare("p1", "insert into x (num) values ($1)");
D("varchar", prepare::treat_string); // How many times to invoke this?
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general