mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-07 12:35:00 +00:00

As explained in docs: https://sqlite.org/lang_transaction.html "BEGIN DEFERRED statement merely sets a flag on the database connection that turns off the automatic commit that would normally occur when the last statement finishes." The transaction upgrade (read -> write) is already handled by the VDBE
16 lines
No EOL
257 B
Tcl
Executable file
16 lines
No EOL
257 B
Tcl
Executable file
#!/usr/bin/env tclsh
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
do_execsql_test basic-tx-1 {
|
|
BEGIN IMMEDIATE; END
|
|
} {}
|
|
|
|
do_execsql_test basic-tx-2 {
|
|
BEGIN EXCLUSIVE; END
|
|
} {}
|
|
|
|
do_execsql_test basic-tx-3 {
|
|
BEGIN DEFERRED; END
|
|
} {} |