6ab91a7a7a
so that they work with DEFENSIVE enabled. FossilOrigin-Name: 3212733cb6d1a59516d67a86df7c7b1d2456a1b2e5d7080c26b0e87b2609c65d
39 lines
959 B
Plaintext
39 lines
959 B
Plaintext
# 2018 January 18
|
|
#
|
|
# The author disclaims copyright to this source code. In place of
|
|
# a legal notice, here is a blessing:
|
|
#
|
|
# May you do good and not evil.
|
|
# May you find forgiveness for yourself and forgive others.
|
|
# May you share freely, never taking more than you give.
|
|
#
|
|
#***********************************************************************
|
|
#
|
|
|
|
if {![info exists testdir]} {
|
|
set testdir [file join [file dirname [info script]] .. .. test]
|
|
}
|
|
source [file join [file dirname [info script]] session_common.tcl]
|
|
source $testdir/tester.tcl
|
|
ifcapable !session {finish_test; return}
|
|
set testprefix sessionH
|
|
|
|
forcedelete test.db2
|
|
sqlite3 db2 test.db2
|
|
|
|
do_test 1.0 {
|
|
do_common_sql {
|
|
CREATE TABLE t1(a, b, c, PRIMARY KEY(a, b));
|
|
}
|
|
do_then_apply_sql {
|
|
WITH s(i) AS (
|
|
VALUES(1) UNION ALL SELECT i+1 FROM s WHERe i<10000
|
|
)
|
|
INSERT INTO t1 SELECT 'abcde', randomblob(16), i FROM s;
|
|
}
|
|
compare_db db db2
|
|
} {}
|
|
|
|
|
|
finish_test
|