CAPI 连接集群执行 sql 报错"Commands out of sync”
问题现象
用 C 调用时,报错:2014, "Commands out of sync; you can't run this command now”。
原因分析
原因为程序中结果集调用完成后未释放,即前一个 sql 的状态未清理,在执行第二 个 sql 时会报此错误。S
解决方法
在 C 程序中结果集用完后,用 gbase_free_results 释放结果集,重新调用后正常。
GBase 8a CAPI 连接集群执行 sql 报错“Commands out of sync”
最新推荐文章于 2024-09-19 12:09:10 发布