MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | #ifndef _PGSQL_H |
| 2 | #define _PGSQL_H |
| 3 | |
| 4 | /* Definitions for the PostgreSQL efuns */ |
| 5 | |
| 6 | #define PGRES_EMPTY_QUERY 0 /* Unimplemented */ |
| 7 | #define PGRES_COMMAND_OK 1 |
| 8 | #define PGRES_TUPLES_OK 2 |
| 9 | #define PGRES_COPY_OUT 3 /* Unimplemented */ |
| 10 | #define PGRES_COPY_IN 4 /* Unimplemented */ |
| 11 | #define PGRES_BAD_RESPONSE 5 |
| 12 | #define PGRES_NONFATAL_ERROR 6 |
| 13 | #define PGRES_FATAL_ERROR 7 |
| 14 | #define PGRES_NOTICE 99 |
| 15 | |
| 16 | #define PGCONN_SUCCESS 100 |
| 17 | #define PGCONN_FAILED 101 |
| 18 | #define PGCONN_ABORTED 102 |
| 19 | |
| 20 | #define PG_RESULT_ARRAY 0 |
| 21 | #define PG_RESULT_MAP 1 |
| 22 | |
| 23 | #endif |