We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976e9a7 commit 5503724Copy full SHA for 5503724
src/odbc.cpp
@@ -236,7 +236,6 @@ ODBCError* ODBCAsyncWorker::GetODBCErrors
236
SQLHANDLE handle
237
)
238
{
239
-
240
SQLRETURN return_code;
241
SQLSMALLINT error_message_length = ERROR_MESSAGE_BUFFER_CHARS;
242
SQLINTEGER statusRecCount;
@@ -291,7 +290,7 @@ ODBCError* ODBCAsyncWorker::GetODBCErrors
291
290
&new_error_message_length // TextLengthPtr
292
);
293
294
- if (error_message_length <= new_error_message_length)
+ if (error_message_length > new_error_message_length)
295
296
break;
297
}
0 commit comments