mirror of
https://github.com/status-im/sqlcipher.git
synced 2026-08-30 22:11:14 +00:00
Snapshot of upstream SQLite 3.26.0
This commit is contained in:
+11
-15
@@ -22,9 +22,7 @@ ifcapable !gettable {
|
||||
return
|
||||
}
|
||||
|
||||
ifcapable memdebug {
|
||||
source $testdir/malloc_common.tcl
|
||||
}
|
||||
source $testdir/malloc_common.tcl
|
||||
|
||||
do_test tableapi-1.0 {
|
||||
set ::dbx [sqlite3_open test.db]
|
||||
@@ -239,18 +237,16 @@ do_test tableapi-99.0 {
|
||||
sqlite3_close $::dbx
|
||||
} {SQLITE_OK}
|
||||
|
||||
ifcapable memdebug {
|
||||
do_malloc_test tableapi-7 -sqlprep {
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1(a,b);
|
||||
INSERT INTO t1 VALUES(1,2);
|
||||
INSERT INTO t1 VALUES(3,4);
|
||||
INSERT INTO t1 SELECT a+4, b+4 FROM t1;
|
||||
INSERT INTO t1 SELECT a+8, b+8 FROM t1;
|
||||
} -tclbody {
|
||||
set r [sqlite3_get_table_printf db {SELECT rowid, a, b FROM t1} {}]
|
||||
if {[llength $r]<26} {error "out of memory"}
|
||||
}
|
||||
do_malloc_test tableapi-7 -sqlprep {
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1(a,b);
|
||||
INSERT INTO t1 VALUES(1,2);
|
||||
INSERT INTO t1 VALUES(3,4);
|
||||
INSERT INTO t1 SELECT a+4, b+4 FROM t1;
|
||||
INSERT INTO t1 SELECT a+8, b+8 FROM t1;
|
||||
} -tclbody {
|
||||
set r [sqlite3_get_table_printf db {SELECT rowid, a, b FROM t1} {}]
|
||||
if {[llength $r]<26} {error "out of memory"}
|
||||
}
|
||||
|
||||
finish_test
|
||||
|
||||
Reference in New Issue
Block a user