Dmitriy Igrishin escreveu: > /* NOT presents - NULL. Why not "00000" ? */ > const char* sqlstate = Pg::PQresultErrorField(res, PG_DIAG_SQLSTATE); > That's because the protocol doesn't set error field when the command succeeded. IMHO it's an oversight (the documentation is correct but the code is not) and should be correct because the spec enforces it.
-- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers