diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2010-01-12 12:46:54 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2010-01-12 12:46:54 +0000 |
commit | d8a32814f7cd18a86fb15a3c9c0a58047423f70a (patch) | |
tree | a2e9b70eaa33011ae94c5976b66e411bde5660f5 /ext/pdo_pgsql/pgsql_driver.c | |
parent | 69f653275836a59bfa8f6693d99eb13227afaf26 (diff) | |
download | php-git-d8a32814f7cd18a86fb15a3c9c0a58047423f70a.tar.gz |
Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0)
Diffstat (limited to 'ext/pdo_pgsql/pgsql_driver.c')
-rw-r--r-- | ext/pdo_pgsql/pgsql_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index c80f37672e..da80c67835 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -87,7 +87,7 @@ int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char * } if (!dbh->methods) { - zend_throw_exception_ex(php_pdo_get_exception(), 0 TSRMLS_CC, "SQLSTATE[%s] [%d] %s", + zend_throw_exception_ex(php_pdo_get_exception(), einfo->errcode TSRMLS_CC, "SQLSTATE[%s] [%d] %s", *pdo_err, einfo->errcode, einfo->errmsg); } |