Igor Korot <[email protected]> wrote: > Will I be punished if I call ROLLBACK outside transaction?
You'll get an error (I would expect SQLITE_MISUSE), but otherwise nothing bad will happen. > Thing is I'm trying to write a function in C++ that will be used > mostly inside transactions > but the usage will be general. You could use sqlite3_get_autocommit to detect whether a transaction is in effect (autocommit is on when there is no explicit transaction, off when there is a transaction in progress). -- Igor Tandetnik _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

