Hi All,
My application is crashed with the stack trace as below:
#0 pager_end_transaction (pPager=0x4031fdb8, hasMaster=0)
at ../src/pager.c:1420
1420 ../src/pager.c: No such file or directory.
in ../src/pager.c
(gdb) where
#0 pager_end_transaction (pPager=0x4031fdb8, hasMaster=0)
at ../src/pager.c:1420
#1 0xb702375c in sqlite3PagerCommitPhaseTwo (pPager=0x4031fdb8)
at ../src/pager.c:4811
#2 0xb700761e in sqlite3BtreeCommitPhaseTwo (p=0x4031e1c0)
at ../src/btree.c:2427
#3 0xb70436e8 in sqlite3VdbeHalt (p=0x40f695f8) at
../src/vdbeaux.c:1269
#4 0xb703c145 in sqlite3VdbeExec (p=0x40f695f8) at ../src/vdbe.c:806
#5 0xb7041948 in sqlite3_step (pStmt=0x40f695f8) at
../src/vdbeapi.c:477
and below is the codes:
ret = sqlite3_bind_text(pstmt_is, 1, s, -1, SQLITE_STATIC);
......................................................................
ret = sqlite3_bind_int(pstmt_is, 9, ts);
rc = sqlite3_step (pstmt_is);
if (rc == SQLITE_DONE) {
rc = 0;
} else {
}
sqlite3_reset(pstmt_is);
ret = sqlite3_exec(sqlite, "END", NULL, NULL, NULL);
ret = sqlite3_exec(sqlite, "COMMIT", NULL, NULL, NULL);
Is that the problem with the "END" end of transaction following the "COMMIT"
and should not have the sqlite3_reset before "END"?
Thanks,
JP
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users