2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A# The author disclaims copyright to this source code. In place of
2N/A# a legal notice, here is a blessing:
2N/A# May you do good and not evil.
2N/A# May you find forgiveness for yourself and forgive others.
2N/A# May you share freely, never taking more than you give.
2N/A#***********************************************************************
2N/A# This file implements regression tests for SQLite library.
2N/A# This file implements tests for joins, including outer joins, where
2N/A# there are a large number of tables involved in the join.
2N/Aset testdir [file dirname $argv0]
2N/Afor {set N 1} {$N<=40} {incr N} {
2N/A do_test join3-1.$N {
2N/A execsql "CREATE TABLE t${N}(x);"
2N/A execsql "INSERT INTO t$N VALUES($N)"
2N/A set sql "SELECT * FROM t1"
2N/A for {set i 2} {$i<=$N} {incr i} {append sql ", t$i"}