On Wed, Mar 02, 2011 at 12:37:44PM -0500, Pavel Ivanov scratched on the wall:
> I believe sqlite3_get_autocommit is what you need:
> http://www.sqlite.org/c3ref/get_autocommit.html.

  Yes.  More specifically, if you *are* in auto-commit mode, then by
  definition you are NOT in an explicit transaction.

  Conversely, if sqlite3_get_autocommit() returns 0 (false), you are
  inside an explicit transaction.  If it returns true, you are NOT
  inside a explicit transaction (but there may still be open
  statements).

   -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Intelligence is like underwear: it is important that you have it,
 but showing it to the wrong people has the tendency to make them
 feel uncomfortable." -- Angela Johnson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to