On Thu, April 26, 2007 09:07, Jim Stewart wrote: > I see an old thread from back in November about possible solutions to > using > NULLs in prepared statements. Was this ever implemented in any form?
Yes. If you look at the reference documentation for prepared statements, or at the header it's generated from (prepared_statement.hxx), you'll see that there are two ways to pass a null parameter: 1. Pass a null pointer instead of a string (but make sure it's statically typed as a string pointer; under C++ rules an argument of "NULL" would be interpreted as an int). 2. Pass a second, optional Boolean argument to indicate whether the parameter is to be non-null. Jeroen _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
