|
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> |
@@ -1754,8 +1754,10 @@ PGresult *PQexec(PGconn *conn, const char *command); |
1754 | 1754 | Returns a <structname>PGresult</structname> pointer or possibly a null |
1755 | 1755 | pointer. A non-null pointer will generally be returned except in |
1756 | 1756 | out-of-memory conditions or serious errors such as inability to send |
1757 | | - the command to the server. If a null pointer is returned, it should |
1758 | | - be treated like a <symbol>PGRES_FATAL_ERROR</symbol> result. Use |
| 1757 | + the command to the server. The <function>PQresultStatus</> function |
| 1758 | + should be called to check the return value for any errors (including |
| 1759 | + the value of a null pointer, in which case it will return |
| 1760 | + <symbol>PGRES_FATAL_ERROR</symbol>). Use |
1759 | 1761 | <function>PQerrorMessage</function> to get more information about such |
1760 | 1762 | errors. |
1761 | 1763 | </para> |
|