mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
patch by Christopher Kings-Lynne, slightly modified
This commit is contained in:
parent
d72cd1d130
commit
4f778ca31d
4 changed files with 43 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue