diff options
Diffstat (limited to 'usr/src/lib/libsqlite/test/join3_28.test')
-rw-r--r-- | usr/src/lib/libsqlite/test/join3_28.test | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/usr/src/lib/libsqlite/test/join3_28.test b/usr/src/lib/libsqlite/test/join3_28.test new file mode 100644 index 0000000000..5ddbb8a1d5 --- /dev/null +++ b/usr/src/lib/libsqlite/test/join3_28.test @@ -0,0 +1,37 @@ + +#pragma ident "%Z%%M% %I% %E% SMI" + +# 2002 May 24 +# +# 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. +# +#*********************************************************************** +# This file implements regression tests for SQLite library. +# +# This file implements tests for joins, including outer joins, where +# there are a large number of tables involved in the join. +# +# $Id: join3_28.test,v 1.1.2.1 2004/07/22 16:08:39 drh Exp $ + +set testdir [file dirname $argv0] +source $testdir/tester.tcl + +catch {unset result} +set result {} +for {set N 1} {$N<=40} {incr N} { + lappend result $N + do_test join3-1.$N { + execsql "CREATE TABLE t${N}(x);" + execsql "INSERT INTO t$N VALUES($N)" + set sql "SELECT * FROM t1" + for {set i 2} {$i<=$N} {incr i} {append sql ", t$i"} + execsql $sql + } $result +} + +finish_test |