error fields - Mailing list pgsql-docs

From Bart Lengkeek
Subject error fields
Date
Msg-id CAAdeC9TPYV+cgNLtGWoMqUiD+CS6WCVvdLknsLP_gGTogFDY2g@mail.gmail.com
Whole thread Raw
List pgsql-docs
Hello doc keepers,


There is a minor incorrect statement in the libpq docs at following page. https://www.postgresql.org/docs/devel/static/libpq-exec.html

Where it mentions PG_DIAG_SQLSTATE, in the documentation of the PQresultErrorField, it says ".. is always present". But as I found out, and verified after checking the source ( see comment at https://doxygen.postgresql.org/fe-exec_8c_source.html#l00849 ), that isn't true for libpq internal notices, which for example occur in a column out of range situation.


Regards,

Bart Lengkeek

pgsql-docs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: complex documentation and hard to find the reference
Next
From: PG Doc comments form
Date:
Subject: The example for creating a check constraint is missing a comma