Skip to content

refactor(mdb): remove dummy bind_col workaround in query#91

Merged
lewiszlw merged 2 commits into
masterfrom
refactor/mdb-query-safe-exec
Jun 22, 2026
Merged

refactor(mdb): remove dummy bind_col workaround in query#91
lewiszlw merged 2 commits into
masterfrom
refactor/mdb-query-safe-exec

Conversation

@lewiszlw

Copy link
Copy Markdown
Member

Summary

移除 MDB query 路径中的 dummy bind_col 绕过方案(22 行删除)。

mdbtools 1.0.x 要求 SQLFetch 之前必须先 SQLBindCol,否则挂起。在使用 odbc-api 的 safe conn.execute() 之后,尝试直接调用 cursor.next_row(),验证 mdbtools 是否仍需要此绕过。conn.execute() 内部可能已做处理,或者新版 mdbtools 修复了此问题。

The dummy column bind was a workaround for mdbtools 1.0.x which required
SQLBindCol before SQLFetch. With odbc-api's safe conn.execute() wrapper
handling the statement lifecycle, try removing this workaround to see if
mdbtools no longer hangs on SQLFetch without prior SQLBindCol.
@lewiszlw lewiszlw force-pushed the refactor/mdb-query-safe-exec branch from c7f8833 to 62b1cab Compare June 22, 2026 06:08
@lewiszlw lewiszlw merged commit c3fa583 into master Jun 22, 2026
3 checks passed
@lewiszlw lewiszlw deleted the refactor/mdb-query-safe-exec branch June 22, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant