mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-26 02:09:49 +08:00
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:
@@ -1231,6 +1231,7 @@ SQLRETURN SQL_API SQLFetch(
|
|||||||
|
|
||||||
if (mdb_fetch_row(env->sql->cur_table)) {
|
if (mdb_fetch_row(env->sql->cur_table)) {
|
||||||
stmt->rows_affected++;
|
stmt->rows_affected++;
|
||||||
|
stmt->pos=0;
|
||||||
return SQL_SUCCESS;
|
return SQL_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
return SQL_NO_DATA_FOUND;
|
return SQL_NO_DATA_FOUND;
|
||||||
|
|||||||
Reference in New Issue
Block a user