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 | d2e14e3f202d1c30dd79c095ff27bf96a146b813 (patch) | |
tree | d528dad7ae7982a2c6cf96e085dfd8ea63065645 /ext/pdo_pgsql | |
parent | e3f76cc8c3bb5a68736eaff9cecaf9d81ff278ed (diff) | |
download | php-git-d2e14e3f202d1c30dd79c095ff27bf96a146b813.tar.gz |
Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0)
Diffstat (limited to 'ext/pdo_pgsql')
-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 2109fa10c2..f2467e8a66 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); } |