mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
SQLFetch / SQLExtendedFetch now skip the mdb_sql machinery and use SQLGetData on their bound columns instead. We rely on mdb_fetch_row to skip to the correct page without any bindings and then SQLGetData will do the rest. SQLFetch will now correctly return SQL_SUCCESS_WITH_INFO if one or more bound columns have their data truncated, and will return several kinds of errors (provided by SQLGetData) that were previously ignored. Updated the unit test with a SQL_C_LONG type for demonstration purposes. Fixes #23