Fixed bug in ODBC driver causing incomplete data on SQLGetData when doing SQLFetch and SQLGetData for one column in a loop if there was an incomplete fetch of some previous dataset

This commit is contained in:
leecher1337
2015-08-16 00:58:34 +02:00
committed by Brian Bruns
parent 15230b5b73
commit 786add6537

View File

@@ -1231,6 +1231,7 @@ SQLRETURN SQL_API SQLFetch(
if (mdb_fetch_row(env->sql->cur_table)) {
stmt->rows_affected++;
stmt->pos=0;
return SQL_SUCCESS;
} else {
return SQL_NO_DATA_FOUND;