Skip to content

Commit

Permalink
Update core_sqlsrv.h
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiwongky authored Mar 28, 2017
1 parent 7256685 commit 7c4efbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/shared/core_sqlsrv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7c4efbc

Please sign in to comment.