mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01: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
257 B
Tcl
Executable File
16 lines
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
|
|
} {} |