On Fri, May 4, 2007 06:59, Jim Stewart wrote:
> On Thu, 3 May 2007, Jim Stewart wrote:
>
>> How can I suppress the NOTICE messages I'm getting on stderr when I do
>
> Nevermind, I answered my own question.  This works:
>
>     auto_ptr<pqxx::noticer> np(new pqxx::nonnoticer);
>     dbh.set_noticer(np);

Exactly!  The connection object will delete your nonnoticer when it's done
with it, so don't worry about leaking it.


Jeroen


_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to