1*c5c4113dSnw141292 2*c5c4113dSnw141292#pragma ident "%Z%%M% %I% %E% SMI" 3*c5c4113dSnw141292 4*c5c4113dSnw141292# 2002 May 24 5*c5c4113dSnw141292# 6*c5c4113dSnw141292# The author disclaims copyright to this source code. In place of 7*c5c4113dSnw141292# a legal notice, here is a blessing: 8*c5c4113dSnw141292# 9*c5c4113dSnw141292# May you do good and not evil. 10*c5c4113dSnw141292# May you find forgiveness for yourself and forgive others. 11*c5c4113dSnw141292# May you share freely, never taking more than you give. 12*c5c4113dSnw141292# 13*c5c4113dSnw141292#*********************************************************************** 14*c5c4113dSnw141292# This file implements regression tests for SQLite library. 15*c5c4113dSnw141292# 16*c5c4113dSnw141292# This file implements tests for joins, including outer joins, where 17*c5c4113dSnw141292# there are a large number of tables involved in the join. 18*c5c4113dSnw141292# 19*c5c4113dSnw141292# $Id: join3_28.test,v 1.1.2.1 2004/07/22 16:08:39 drh Exp $ 20*c5c4113dSnw141292 21*c5c4113dSnw141292set testdir [file dirname $argv0] 22*c5c4113dSnw141292source $testdir/tester.tcl 23*c5c4113dSnw141292 24*c5c4113dSnw141292catch {unset result} 25*c5c4113dSnw141292set result {} 26*c5c4113dSnw141292for {set N 1} {$N<=40} {incr N} { 27*c5c4113dSnw141292 lappend result $N 28*c5c4113dSnw141292 do_test join3-1.$N { 29*c5c4113dSnw141292 execsql "CREATE TABLE t${N}(x);" 30*c5c4113dSnw141292 execsql "INSERT INTO t$N VALUES($N)" 31*c5c4113dSnw141292 set sql "SELECT * FROM t1" 32*c5c4113dSnw141292 for {set i 2} {$i<=$N} {incr i} {append sql ", t$i"} 33*c5c4113dSnw141292 execsql $sql 34*c5c4113dSnw141292 } $result 35*c5c4113dSnw141292} 36*c5c4113dSnw141292 37*c5c4113dSnw141292finish_test 38