Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Apparently SQLite effectively does a commit on every statement when you have auto-commit on.

    Is there any other way it could behave with auto-commit on?
    • Yes. Autocommit describes the behavior the driver takes when an exit occurs without an explicit commit or rollback. Upon exit, the driver will commit if autocommit is true and rollback if autocommit is false. There's nothing in there that says it has to commit every SQL statement and indeed, if you'll try a simple experiment with DBD::Oracle, you'll see that with autocommit on it doesn't commit until you tell it to or exit.

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
      • by Matts (1087) on 2003.11.24 13:11 (#26019) Journal
        You describe the behaviour for a "Databases in which a transaction is always active". Grep the DBI docs for that line for more details.

        SQLite is more of the category: "Databases in which a transaction must be explicitly started"

        It could have behaved more like Oracle, but I didn't know that was an option.