1# 2018 January 18 2# 3# The author disclaims copyright to this source code. In place of 4# 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# 12 13if {![info exists testdir]} { 14 set testdir [file join [file dirname [info script]] .. .. test] 15} 16source [file join [file dirname [info script]] session_common.tcl] 17source $testdir/tester.tcl 18ifcapable !session {finish_test; return} 19set testprefix sessionH 20 21forcedelete test.db2 22sqlite3 db2 test.db2 23 24do_test 1.0 { 25 do_common_sql { 26 CREATE TABLE t1(a, b, c, PRIMARY KEY(a, b)); 27 } 28 do_then_apply_sql { 29 WITH s(i) AS ( 30 VALUES(1) UNION ALL SELECT i+1 FROM s WHERe i<10000 31 ) 32 INSERT INTO t1 SELECT 'abcde', randomblob(16), i FROM s; 33 } 34 compare_db db db2 35} {} 36 37 38finish_test 39