e branch 'error_numcol' of https://github.com/v-kaywon/msphpsql into error_numcol

get change
:wq
This commit is contained in:
v-kaywon 2017-03-28 11:00:50 -07:00
commit 3f0d3b65f6
2 changed files with 2 additions and 2 deletions

View file

@ -2048,7 +2048,7 @@ namespace core {
// instead of throwing an exception, return 0 if the r=-1, stament has been executed, and has a HY010 error
// (HY010 error should not return if stmt->execute is true)
#ifndef _WIN32
if ( r == -1 && stmt->execute && strcmp( reinterpret_cast<const char*>( stmt->last_error()->sqlstate ), "HY010" ) == 0 )
if ( r == -1 && stmt->executed && strcmp( reinterpret_cast<const char*>( stmt->last_error()->sqlstate ), "HY010" ) == 0 )
return 0;
#endif // !_WIN32

View file

@ -50,4 +50,4 @@ $conn = NULL;
--EXPECT--
prepare OK
prepare with args OK
direct exec OK
direct exec OK