summaryrefslogtreecommitdiffstats
path: root/third_party/sqlite/test/join3.test
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 23:37:03 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 23:37:03 +0000
commite33cba46498a40774bc6d33a9258afbd5fa059e6 (patch)
tree4ce6b22f4f7b2b245b2d89bb9209a53e3274b263 /third_party/sqlite/test/join3.test
parentaaf6472fd01db928919d4dc13687bde2a4b5c7b9 (diff)
downloadchromium_src-e33cba46498a40774bc6d33a9258afbd5fa059e6.zip
chromium_src-e33cba46498a40774bc6d33a9258afbd5fa059e6.tar.gz
chromium_src-e33cba46498a40774bc6d33a9258afbd5fa059e6.tar.bz2
Move bundled copy of sqlite one level deeper to better separate it
from our patches, READMEs, etc. Also, add a shim header so we can use it for building with system sqlite. TEST=compile BUG=22208 Review URL: http://codereview.chromium.org/3108030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56619 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/sqlite/test/join3.test')
-rw-r--r--third_party/sqlite/test/join3.test62
1 files changed, 0 insertions, 62 deletions
diff --git a/third_party/sqlite/test/join3.test b/third_party/sqlite/test/join3.test
deleted file mode 100644
index f1c273d..0000000
--- a/third_party/sqlite/test/join3.test
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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.test,v 1.4 2005/01/19 23:24:51 drh Exp $
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-
-# An unrestricted join
-#
-catch {unset ::result}
-set result {}
-for {set N 1} {$N<=$bitmask_size} {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
-}
-
-# Joins with a comparison
-#
-set result {}
-for {set N 1} {$N<=$bitmask_size} {incr N} {
- lappend result $N
- do_test join3-2.$N {
- set sql "SELECT * FROM t1"
- for {set i 2} {$i<=$N} {incr i} {append sql ", t$i"}
- set sep WHERE
- for {set i 1} {$i<$N} {incr i} {
- append sql " $sep t[expr {$i+1}].x==t$i.x+1"
- set sep AND
- }
- execsql $sql
- } $result
-}
-
-# Error of too many tables in the join
-#
-do_test join3-3.1 {
- set sql "SELECT * FROM t1 AS t0, t1"
- for {set i 2} {$i<=$bitmask_size} {incr i} {append sql ", t$i"}
- catchsql $sql
-} [list 1 "at most $bitmask_size tables in a join"]
-
-
-finish_test