diff options
author | Daniel Persson <daniel.persson@textalk.se> | 2015-09-26 21:48:18 +0200 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-10-18 17:03:39 -0700 |
commit | 307c1f6bf0e8e3c97416b2a22ed54dd4546ea689 (patch) | |
tree | 0b7dc19da5fc4ae12d6375dba9a01c58f91be550 /ext/pdo_mysql | |
parent | c7c6df6cec04b3b46160fd726c2af698bbdf4dc9 (diff) | |
download | php-git-307c1f6bf0e8e3c97416b2a22ed54dd4546ea689.tar.gz |
Fix bug #64172
Check if the SQLSTATE error code is equal to PDO_ERR_NONE before we ask the driver.
And if no error is reported skip the extra call to the driver.
Diffstat (limited to 'ext/pdo_mysql')
-rw-r--r-- | ext/pdo_mysql/tests/pdo_mysql_stmt_errorinfo.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_mysql/tests/pdo_mysql_stmt_errorinfo.phpt b/ext/pdo_mysql/tests/pdo_mysql_stmt_errorinfo.phpt index d5a348957f..9028f0b49f 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_stmt_errorinfo.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_stmt_errorinfo.phpt @@ -129,8 +129,8 @@ array(3) { [0]=> %unicode|string%(5) "00000" [1]=> - int(1146) + NULL [2]=> - %unicode|string%(%d) "Table '%s.ihopeitdoesnotexist' doesn't exist" + NULL } done! |