![dan](/assets/img/avatar_default.png)
flattenSubquery() routine. FossilOrigin-Name: c6dda3f752c184f441624c9993e77d5031063d79a0e177b6e25a9886514a742e
33 lines
762 B
Plaintext
33 lines
762 B
Plaintext
# 2017 March 13
|
|
#
|
|
# 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.
|
|
#
|
|
#***********************************************************************
|
|
# Further OOM tests.
|
|
#
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
source $testdir/malloc_common.tcl
|
|
set testprefix mallocM
|
|
|
|
sqlite3_db_config_lookaside db 0 0 0
|
|
|
|
do_execsql_test 1.0 {
|
|
CREATE TABLE t1(x);
|
|
}
|
|
do_faultsim_test 1 -faults oom-t* -body {
|
|
execsql {
|
|
SELECT 'abc' FROM ( SELECT 'xyz' FROM t1 WHERE (SELECT 1) )
|
|
}
|
|
} -test {
|
|
faultsim_test_result {0 {}}
|
|
}
|
|
|
|
finish_test
|