summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird/firebird_driver.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-01-12 12:46:54 +0000
committerIlia Alshanetsky <iliaa@php.net>2010-01-12 12:46:54 +0000
commitd2e14e3f202d1c30dd79c095ff27bf96a146b813 (patch)
treed528dad7ae7982a2c6cf96e085dfd8ea63065645 /ext/pdo_firebird/firebird_driver.c
parente3f76cc8c3bb5a68736eaff9cecaf9d81ff278ed (diff)
downloadphp-git-d2e14e3f202d1c30dd79c095ff27bf96a146b813.tar.gz
Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0)
Diffstat (limited to 'ext/pdo_firebird/firebird_driver.c')
-rw-r--r--ext/pdo_firebird/firebird_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_firebird/firebird_driver.c b/ext/pdo_firebird/firebird_driver.c
index fe470b96e3..dc2f4e7511 100644
--- a/ext/pdo_firebird/firebird_driver.c
+++ b/ext/pdo_firebird/firebird_driver.c
@@ -691,7 +691,7 @@ static int pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRM
char errmsg[512];
ISC_STATUS *s = H->isc_status;
isc_interprete(errmsg, &s);
- zend_throw_exception_ex(php_pdo_get_exception(), 0 TSRMLS_CC, "SQLSTATE[%s] [%d] %s",
+ zend_throw_exception_ex(php_pdo_get_exception(), H->isc_status[1] TSRMLS_CC, "SQLSTATE[%s] [%d] %s",
"HY000", H->isc_status[1], errmsg);
}