Re: [sqlite] sqlite3_transaction trans(db); can't work in c, I don't know why?

2012-04-06 Thread Andrew Barnes
>>>sqlite_transaction trans(db); >>>sqlite3_prepare(db,"insert into image values('.rar',?);",-1,&stat,0); >>>sqlite3_bind_blob(stat,1,ffile,filesize,NULL); >>>sqlite3_step(stat); >>>free(ffile); >>>sqlite3_finalize(stat); >>>trans.commit(); and what happens? what do you thing shou

[sqlite] sqlite3_transaction trans(db); can't work in c, I don't know why?

2012-04-05 Thread YAN HONG YE
sqlite_transaction trans(db); sqlite3_prepare(db,"insert into image values('.rar',?);",-1,&stat,0); sqlite3_bind_blob(stat,1,ffile,filesize,NULL); sqlite3_step(stat); free(ffile); sqlite3_finalize(stat); trans.commit(); ___ sqlite-users mailing