From: | "anuj" <Anuj(at)in-control(dot)de> |
---|---|
To: | "Daniel Betaille" <betaille(at)lure(dot)u-psud(dot)fr> |
Cc: | <pgsql-general(at)hub(dot)org> |
Subject: | RE: Documentation |
Date: | 2000-08-03 10:23:49 |
Message-ID: | NEBBICAAMKOEBEPFMFPBOENJCCAA.Anuj@in-control.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
PQresultStatus use for error handling.
*** This is a part of the postgres manual ***
PQresultStatus Returns the result status of the query. PQresultStatus can
return one of the following values:
PGRES_EMPTY_QUERY,
PGRES_COMMAND_OK, /* the query was a command returning no data */
PGRES_TUPLES_OK, /* the query successfully returned tuples */
PGRES_COPY_OUT, /* Copy Out (from server) data transfer started */
PGRES_COPY_IN, /* Copy In (to server) data transfer started */
PGRES_BAD_RESPONSE, /* an unexpected response was received */
PGRES_NONFATAL_ERROR,
PGRES_FATAL_ERROR
If the result status is PGRES_TUPLES_OK, then the routines described below
can be used to retrieve the tuples returned by the query.
Note that a SELECT that happens to retrieve zero tuples still shows
PGRES_TUPLES_OK. PGRES_COMMAND_OK is for commands that can never return
tuples.
-----Original Message-----
From: pgsql-general-owner(at)hub(dot)org [mailto:pgsql-general-owner(at)hub(dot)org]On
Behalf Of Daniel Betaille
Sent: Thursday, August 03, 2000 11:42 AM
To: psgsql-general
Subject: [GENERAL] Documentation
Hello,
I'm a new user of postgresql, I've wrote a program in C to insert data
from files.
I'm searching meanings of PQresultStatus but don't find any answers in
the docs I've read.
Where to find that meanings and different values?
Thanks
Daniel
From | Date | Subject | |
---|---|---|---|
Next Message | luc00 | 2000-08-03 13:51:59 | libpq++ app code examples ? |
Previous Message | Matthias Teege | 2000-08-03 08:32:46 | Unions in views |