Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我们的驱动程序中使用开源 ODBC 驱动程序管理器,我收到此错误 24000(0)[unixODBC][Driver Manager]Invalid cursor state 我试图在我的驱动程序中调试但没有帮助。请你解释一下这个错误是来自驱动程序管理器还是来自我的驱动程序。
错误来自驱动程序管理器。您将不按顺序调用 ODBC 函数。打开驱动程序管理器跟踪,在您的 odbcinst.ini 添加
[ODBC] Trace = Yes TraceFile = /tmp/sql.log
然后运行您的应用程序并查看导致错误的原因。