message: ODBC before commit it's need to materialize result set.
diff: @@ -108,9 +108,18 @@ SQLRETURN SQLEndTran(SQLSMALLINT handle_type, SQLHANDLE handle, SQLSMALLINT comp
  return duckdb::WithConnection(handle, [&](duckdb::OdbcHandleDbc *dbc) {
  switch (completion_type) {
  case SQL_COMMIT:
  + if (dbc->stmt_handle) {
  + // it needs to materialize the result set because ODBC can still fetch after a commit
  + if (dbc->stmt_handle->MaterializeResult() != SQL_SUCCESS) {
  + // for some reason we couldn't materialize the result set
  + return SQL_ERROR;
  + }
  + }
  dbc->conn->Commit();
  + return SQL_SUCCESS;
  case SQL_ROLLBACK:
  dbc->conn->Rollback();
  + return SQL_SUCCESS;
  default:
  return SQL_ERROR;
  }
  