|
1 | 1 | <!--
|
2 |
| -$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.154 2004/04/24 22:58:40 neilc Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.155 2004/05/14 18:04:02 neilc Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <chapter id="libpq">
|
@@ -1336,12 +1336,20 @@ localized translation of one of these. Always present.
|
1336 | 1336 | </varlistentry>
|
1337 | 1337 |
|
1338 | 1338 | <varlistentry>
|
| 1339 | + <indexterm> |
| 1340 | + <primary>error codes</primary> |
| 1341 | + <secondary>libpq</secondary> |
| 1342 | + </indexterm> |
1339 | 1343 | <term><symbol>PG_DIAG_SQLSTATE</>
|
1340 | 1344 | </term>
|
1341 | 1345 | <listitem>
|
1342 | 1346 | <para>
|
1343 |
| -The SQLSTATE code for the error (see <xref linkend="errcodes-appendix">). |
1344 |
| -Not localizable. Always present. |
| 1347 | +The SQLSTATE code for the error. The SQLSTATE code identifies the type |
| 1348 | +of error that has occurred; it can be used by front-end applications |
| 1349 | +to perform specific operations (such as error handling) in response to |
| 1350 | +a particular database error. For a list of the possible SQLSTATE |
| 1351 | +codes, see <xref linkend="errcodes-appendix">. This field is not |
| 1352 | +localizable, and is always present. |
1345 | 1353 | </para>
|
1346 | 1354 | </listitem>
|
1347 | 1355 | </varlistentry>
|
@@ -1871,7 +1879,7 @@ on <function>PQfsize</function> to obtain the actual data length.
|
1871 | 1879 | Prints out all the rows and, optionally, the
|
1872 | 1880 | column names to the specified output stream.
|
1873 | 1881 | <synopsis>
|
1874 |
| -void PQprint(FILE* fout, /* output stream */ |
| 1882 | +void PQprint(FILE *fout, /* output stream */ |
1875 | 1883 | const PGresult *res,
|
1876 | 1884 | const PQprintOpt *po);
|
1877 | 1885 |
|
@@ -3217,15 +3225,15 @@ typedef enum {
|
3217 | 3225 |
|
3218 | 3226 | PGVerbosity PQsetErrorVerbosity(PGconn *conn, PGVerbosity verbosity);
|
3219 | 3227 | </synopsis>
|
3220 |
| -<function>PQsetErrorVerbosity</> sets the verbosity mode, returning the |
3221 |
| -connection's previous setting. |
3222 |
| -In <firstterm>terse</> mode, returned messages include severity, primary text, and position |
3223 |
| -only; this will normally fit on a single line. The default mode produces |
3224 |
| -messages that include the above plus any detail, hint, or context fields |
3225 |
| -(these may span multiple lines). The <firstterm>VERBOSE</> mode includes all available |
3226 |
| -fields. Changing the verbosity does not affect the messages available from |
3227 |
| -already-existing <structname>PGresult</> objects, only subsequently-created |
3228 |
| -ones. |
| 3228 | +<function>PQsetErrorVerbosity</> sets the verbosity mode, returning |
| 3229 | +the connection's previous setting. In <firstterm>TERSE</> mode, |
| 3230 | +returned messages include severity, primary text, and position only; |
| 3231 | +this will normally fit on a single line. The default mode produces |
| 3232 | +messages that include the above plus any detail, hint, or context |
| 3233 | +fields (these may span multiple lines). The <firstterm>VERBOSE</> |
| 3234 | +mode includes all available fields. Changing the verbosity does not |
| 3235 | +affect the messages available from already-existing |
| 3236 | +<structname>PGresult</> objects, only subsequently-created ones. |
3229 | 3237 | </para>
|
3230 | 3238 | </listitem>
|
3231 | 3239 | </varlistentry>
|
|
0 commit comments