加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

sqlite运行错误示例

发布时间:2020-12-12 20:01:07 所属栏目:百科 来源:网络整理
导读:一. sqlite3 close returns error code 5 The sqlite3_close documenationstates it clearly: Applications must finalize all prepared statements and close all BLOB handles associated with the sqlite3 object prior to attempting to close the objec

一.sqlite3 close returns error code 5

Thesqlite3_closedocumenationstates it clearly:

Applications must finalize all prepared statements and close all BLOB handles associated with the sqlite3 object prior to attempting to close the object. If sqlite3_close() is called on a database connection that still has outstanding prepared statements or BLOB handles,then it returns SQLITE_BUSY.

char sql[] = "select PileData.FileID as FileID,PileData.SourceData as SourceData,PileFile.SaveTime as SaveTime from PileData inner join PileFile on PileData.FileID=PileFile.FileID where PileFile.Upload=0 limit 1"; CRsQuery result = db.execQuery(sql); if(result.eof())//没找到未发送的文件 { result.finalize();//增加该语句 db.close(); return FALSE; }

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读