2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A
2N/A# 2002 May 24
2N/A#
2N/A# The author disclaims copyright to this source code. In place of
2N/A# a legal notice, here is a blessing:
2N/A#
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#***********************************************************************
2N/A# This file implements regression tests for SQLite library.
2N/A#
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/A#
2N/A# $Id: join3_28.test,v 1.1.2.1 2004/07/22 16:08:39 drh Exp $
2N/A
2N/Aset testdir [file dirname $argv0]
2N/Asource $testdir/tester.tcl
2N/A
2N/Acatch {unset result}
2N/Aset result {}
2N/Afor {set N 1} {$N<=40} {incr N} {
2N/A lappend result $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"}
2N/A execsql $sql
2N/A } $result
2N/A}
2N/A
2N/Afinish_test