fix seg fault
This commit is contained in:
parent
20806e6872
commit
0fd7ebb6d3
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue