summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql
diff options
context:
space:
mode:
authorDaniel Persson <daniel.persson@textalk.se>2015-09-26 21:48:18 +0200
committerStanislav Malyshev <stas@php.net>2015-10-18 17:03:39 -0700
commit307c1f6bf0e8e3c97416b2a22ed54dd4546ea689 (patch)
tree0b7dc19da5fc4ae12d6375dba9a01c58f91be550 /ext/pdo_mysql
parentc7c6df6cec04b3b46160fd726c2af698bbdf4dc9 (diff)
downloadphp-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.phpt4
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!