|
62 | 62 | return a non-null object pointer, unless perhaps there is too |
63 | 63 | little memory even to allocate the <structname>PGconn</> object. |
64 | 64 | The <function>PQstatus</> function should be called to check |
65 | | -whether a connection was successfully made before queries are sent |
| 65 | +the return value for a successful connection before queries are sent |
66 | 66 | via the connection object. |
67 | 67 |
|
68 | 68 | <warning> |
@@ -1750,8 +1750,10 @@ PGresult *PQexec(PGconn *conn, const char *command); |
1750 | 1750 | Returns a <structname>PGresult</structname> pointer or possibly a null |
1751 | 1751 | pointer. A non-null pointer will generally be returned except in |
1752 | 1752 | out-of-memory conditions or serious errors such as inability to send |
1753 | | - the command to the server. If a null pointer is returned, it should |
1754 | | - be treated like a <symbol>PGRES_FATAL_ERROR</symbol> result. Use |
| 1753 | + the command to the server. The <function>PQresultStatus</> function |
| 1754 | + should be called to check the return value for any errors (including |
| 1755 | + the value of a null pointer, in which case it will return |
| 1756 | + <symbol>PGRES_FATAL_ERROR</symbol>). Use |
1755 | 1757 | <function>PQerrorMessage</function> to get more information about such |
1756 | 1758 | errors. |
1757 | 1759 | </para> |
|