diff options
author | Wez Furlong <wez@php.net> | 2005-05-13 18:09:03 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2005-05-13 18:09:03 +0000 |
commit | 4f778ca31d3a1c71f9eeab0f9e29f3e462fc8f19 (patch) | |
tree | 92a39b1b59ee60d03e6d447dfd350181b342403d /ext/pdo_pgsql/php_pdo_pgsql_int.h | |
parent | d72cd1d1303a7a61b280fd92565ba94f28f362d5 (diff) | |
download | php-git-4f778ca31d3a1c71f9eeab0f9e29f3e462fc8f19.tar.gz |
patch by Christopher Kings-Lynne, slightly modified
Diffstat (limited to 'ext/pdo_pgsql/php_pdo_pgsql_int.h')
-rw-r--r-- | ext/pdo_pgsql/php_pdo_pgsql_int.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/pdo_pgsql/php_pdo_pgsql_int.h b/ext/pdo_pgsql/php_pdo_pgsql_int.h index ee3e290f83..a2f98b783a 100644 --- a/ext/pdo_pgsql/php_pdo_pgsql_int.h +++ b/ext/pdo_pgsql/php_pdo_pgsql_int.h @@ -25,6 +25,8 @@ #include <libpq-fe.h> +#define PHP_PDO_PGSQL_CONNECTION_FAILURE_SQLSTATE "08006" + typedef struct { const char *file; int line; @@ -65,9 +67,9 @@ typedef struct { extern pdo_driver_t pdo_pgsql_driver; -extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *file, int line TSRMLS_DC); -#define pdo_pgsql_error(d,e) _pdo_pgsql_error(d, NULL, e, __FILE__, __LINE__ TSRMLS_CC) -#define pdo_pgsql_error_stmt(s,e) _pdo_pgsql_error(s->dbh, s, e, __FILE__, __LINE__ TSRMLS_CC) +extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, const char *file, int line TSRMLS_DC); +#define pdo_pgsql_error(d,e,z) _pdo_pgsql_error(d, NULL, e, z, __FILE__, __LINE__ TSRMLS_CC) +#define pdo_pgsql_error_stmt(s,e,z) _pdo_pgsql_error(s->dbh, s, e, z, __FILE__, __LINE__ TSRMLS_CC) extern struct pdo_stmt_methods pgsql_stmt_methods; |