diff options
author | Daniel Persson <daniel.persson@textalk.se> | 2015-09-26 21:28:23 +0200 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2015-10-18 17:06:54 -0700 |
commit | 73384728cadfc28ae6c621636de25fdada464e5b (patch) | |
tree | 0764522107d0ac40a8813919f1fce95bf3f948d2 /ext/pdo_mysql | |
parent | c76fd640e609692724900c54f338a5d99f7d226a (diff) | |
download | php-git-73384728cadfc28ae6c621636de25fdada464e5b.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! |