Re: [sqlite] SQLite error: cannot commit transaction - SQL statements in progress

2009-06-26 Thread Igor Tandetnik
Manasi Save wrote:
> I am working on an application. In my code nowhere I am explicitly
> setting AutoCommit = False after any statement.

You set AutoCommit = False by executing BEGIN statement. You set it back 
to True by executing COMMIT, END or ROLLBACK.

> But i am getting "SQLite error: cannot commit transaction - SQL
> statements in progress" this error.

You have to sqlite3_reset or sqlite3_finalize all outstanding statements 
before you can commit a transaction.

Igor Tandetnik 



___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] SQLite error: cannot commit transaction - SQL statements in progress

2009-06-26 Thread Manasi Save
Hi All,

I am working on an application. In my code nowhere I am explicitly setting
AutoCommit = False after any statement.

But i am getting "SQLite error: cannot commit transaction - SQL statements
in progress" this error.

Can anyone provide any input on this case in which all senerio we get this
error.

Thanks in advance.
-- 
Regards,
Manasi Save




___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users