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_odbc/odbc_driver.c | |
parent | e3f76cc8c3bb5a68736eaff9cecaf9d81ff278ed (diff) | |
download | php-git-d2e14e3f202d1c30dd79c095ff27bf96a146b813.tar.gz |
Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0)
Diffstat (limited to 'ext/pdo_odbc/odbc_driver.c')
-rwxr-xr-x | ext/pdo_odbc/odbc_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c index 6a7b0b6e4e..e014bd7bec 100755 --- a/ext/pdo_odbc/odbc_driver.c +++ b/ext/pdo_odbc/odbc_driver.c @@ -104,7 +104,7 @@ void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement, strcpy(*pdo_err, einfo->last_state); /* printf("@@ SQLSTATE[%s] %s\n", *pdo_err, einfo->last_err_msg); */ if (!dbh->methods) { - zend_throw_exception_ex(php_pdo_get_exception(), 0 TSRMLS_CC, "SQLSTATE[%s] %s: %d %s", + zend_throw_exception_ex(php_pdo_get_exception(), einfo->last_error TSRMLS_CC, "SQLSTATE[%s] %s: %d %s", *pdo_err, what, einfo->last_error, einfo->last_err_msg); } |