1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

clarify BEGIN IMMEDIATE is used when AutoCommit is off

Clarify that `BEGIN IMMEDIATE` is used when `AutoCommit` is off rather
than when in `AutoCommit` mode.
This commit is contained in:
Nathaniel Nutter 2015-04-16 11:11:13 -05:00
parent 1633c095e1
commit 214cb720b6

View file

@ -1374,7 +1374,8 @@ could create a separate transaction and write to the database after
the C<BEGIN> on the current thread has executed, and eventually
cause a "deadlock". To avoid this, DBD::SQLite internally issues
a C<BEGIN IMMEDIATE> when you begin a transaction by
C<begin_work> or under the C<AutoCommit> mode (since 1.38_01).
C<begin_work> or execute a statement with C<AutoCommit> disabled
(since 1.38_01).
If you really need to turn off this feature for some reasons,
set C<sqlite_use_immediate_transaction> database handle attribute