[Libpqxx-general] Howto escape inside a transactor?
Roland Bock
rbock at eudoxos.de
Mon Jun 8 11:58:06 UTC 2009
Hi,
this question probably qualifies me for green newbie of the month:
I have a class
class my_transactor: public pqxx::transactor<>
{
...
void operator()(argument_type& t)
{
...
}
...
}
Within the operator(), I would like to escape a string (following the
tutorial "Make me proud."). I don't seem to be able to find the right
way, though:
The pqxx::escape_binary is deprecated, the pqxx::connection object I
have at hand has a esc function, but it is private and I doubt that I
should create a transaction object insider my transactor just to call an
escape function...
Currently I am working with version-2.6.9 (upgrade would be possible).
Regards,
Roland
More information about the Libpqxx-general
mailing list