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
parent 584119e415
commit f1bc697d6a

View File

@@ -1230,6 +1230,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;