fix seg fault

This commit is contained in:
v-kaywon 2017-03-29 11:26:45 -07:00
parent 20806e6872
commit 0fd7ebb6d3

View file

@ -2051,9 +2051,9 @@ namespace core {
sqlsrv_error_auto_ptr error;
if ( stmt->current_results != NULL ) {
error = stmt->current_results->get_diag_rec( 1 );
}
if ( r == -1 && stmt->executed && strcmp( reinterpret_cast<const char*>( error->sqlstate ), "HY010" ) == 0 )
return 0;
}
#endif // !_WIN32
CHECK_SQL_ERROR_OR_WARNING( r, stmt ) {
throw CoreException();