AryaWu/sqlite
0
1# 2015-11-072#3# The author disclaims copyright to this source code. In place of4# a legal notice, here is a blessing:5#6# May you do good and not evil.7# May you find forgiveness for yourself and forgive others.8# May you share freely, never taking more than you give.9#10#***********************************************************************11# This file implements regression tests for SQLite library. The12# focus of this file is testing the WITH clause.13#14 15set testdir [file dirname $argv0]16source $testdir/tester.tcl17set ::testprefix atomic18 19db close20if {[atomic_batch_write test.db]==0} {21 puts "No f2fs atomic-batch-write support. Skipping tests..."22 finish_test23 return24}25 26reset_db27 28do_execsql_test 1.0 {29 CREATE TABLE t1(x, y);30 BEGIN;31 INSERT INTO t1 VALUES(1, 2);32}33 34do_test 1.1 { file exists test.db-journal } {0}35 36do_execsql_test 1.2 {37 COMMIT;38}39 40 41finish_test42 