Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Postgres status



Alain a écrit :
Bonjour,

Depuis plusieurs années j'utilisais Postgres-7.3 (libpq) avec un interface "maison".
Les 2 derniers chiffres de PQresultStatus me donnaient un résultat intéressant et suffisant, mais ça semble avoir changé avec Postgres-8.2.3 !
Si quelqu'un pouvait m'indiquer où trouver les valeurs numériques renvoyées par libpq sur un int, ça m'aiderait grandement.

Merci d'avance,
Bonjour,

Vous pouvez interroger et naviguer dans les sources de postgresql ici :
http://doxygen.postgresql.org/

La fonction est définie :

ExecStatusType <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c> PQresultStatus(const const PGresult <http://doxygen.postgresql.org/structpg__result.html> *res) Definition at line 2023 <http://doxygen.postgresql.org/fe-exec_8c-source.html#l02023> of file fe-exec.c <http://doxygen.postgresql.org/fe-exec_8c-source.html>.

et l'énumération ExecStatusType <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c> est définie : Definition at line 69 <http://doxygen.postgresql.org/libpq-fe_8h-source.html#l00069> of file libpq-fe.h <http://doxygen.postgresql.org/libpq-fe_8h-source.html>.

00070 {
00071     PGRES_EMPTY_QUERY <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c5bcebb782e39c46a1f6fe2e1c17634a7> = 0,      /* empty query string was executed */
00072     PGRES_COMMAND_OK <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c30b1ce51e1676da28c618d38439284e5>,           /* a query command that doesn't return
00073                                  * anything was executed properly by the
00074                                  * backend */
00075     PGRES_TUPLES_OK <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2cefe3cabaaf111490a09b7c410a89b084>,            /* a query command that returns tuples was
00076                                  * executed properly by the backend, PGresult
00077                                  * contains the result tuples */
00078     PGRES_COPY_OUT <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c55f6412fa67edf78ff41c2559bf40127>,             /* Copy Out data transfer in progress */
00079     PGRES_COPY_IN <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c09c593bcca28ebd5a799b84f45821083>,              /* Copy In data transfer in progress */
00080     PGRES_BAD_RESPONSE <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c741d6d1937c7d3935411b874990f15ac>,         /* an unexpected response was recv'd from the
00081                                  * backend */
00082     PGRES_NONFATAL_ERROR <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2cd8831d377aaa96eb20ad476ad5b1d28d>,       /* notice or warning message */
00083     PGRES_FATAL_ERROR <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c41ea3488e8ce3df32c06c0e9c8b620f4>           /* query failed */
00084 } ExecStatusType <http://doxygen.postgresql.org/libpq-fe_8h.html#16a9effd60c2048ab36ab3bf52bede2c>;

Cordialement.
François Figarola.

--
INTERNET CONSULT
Mas Guerido
6 rue Aristide Bergès
66330 CABESTANY

Tel   04.68.66.09.29
fax   04.68.66.99.50
* francois(dot)figarola(at)i-consult(dot)fr




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group