3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
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.
10 #***********************************************************************
12 # Test that the bug reported by ticket d11f09d36e7cb0821e01f4 has
16 set testdir [file dirname $argv0]
17 source $testdir/tester.tcl
19 set a_string_counter 1
21 global a_string_counter
23 string range [string repeat "${a_string_counter}." $n] 1 $n
25 db func a_string a_string
27 do_test tkt-d11f09d36e.1 {
29 PRAGMA synchronous = NORMAL;
30 PRAGMA cache_size = 10;
31 CREATE TABLE t1(x, y, UNIQUE(x, y));
34 for {set i 0} {$i < 10000} {incr i} {
35 execsql { INSERT INTO t1 VALUES($i, $i) }
39 do_test tkt-d11f09d36e.2 {
42 UPDATE t1 set x = x+10000;
46 do_test tkt-d11f09d36e.3 {
47 execsql { PRAGMA integrity_check }
49 do_test tkt-d11f09d36e.4 {
52 UPDATE t1 set x = x+10000;
57 do_test tkt-d11f09d36e.5 {
58 execsql { PRAGMA integrity_check }