summaryrefslogtreecommitdiff
path: root/ext/pdo/php_pdo_int.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-20 19:16:49 +0000
committerWez Furlong <wez@php.net>2004-05-20 19:16:49 +0000
commit5023a7c61c7584ec7f976550f45e661c27ee3f7e (patch)
tree0afd160c8aade74b0b62ff18c8f9eb27e9f012c6 /ext/pdo/php_pdo_int.h
parent726e188ccee9b7896c1b3b9899b3c9c9bb4ce758 (diff)
downloadphp-git-5023a7c61c7584ec7f976550f45e661c27ee3f7e.tar.gz
Enable setting the different error modes via PDO::setAttribute()
Diffstat (limited to 'ext/pdo/php_pdo_int.h')
-rwxr-xr-xext/pdo/php_pdo_int.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo/php_pdo_int.h b/ext/pdo/php_pdo_int.h
index 2915ee2017..2c3b73de31 100755
--- a/ext/pdo/php_pdo_int.h
+++ b/ext/pdo/php_pdo_int.h
@@ -40,8 +40,8 @@ extern void pdo_handle_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt TSRMLS_DC);
#define PDO_DBH_CLEAR_ERR() dbh->error_code = PDO_ERR_NONE
#define PDO_STMT_CLEAR_ERR() stmt->error_code = PDO_ERR_NONE
-#define PDO_HANDLE_DBH_ERR() pdo_handle_error(dbh, NULL TSRMLS_CC)
-#define PDO_HANDLE_STMT_ERR() pdo_handle_error(stmt->dbh, stmt TSRMLS_CC)
+#define PDO_HANDLE_DBH_ERR() if (dbh->error_code) { pdo_handle_error(dbh, NULL TSRMLS_CC); }
+#define PDO_HANDLE_STMT_ERR() if (stmt->error_code) { pdo_handle_error(stmt->dbh, stmt TSRMLS_CC); }
/*