~ubuntu-branches/ubuntu/precise/sqlite3/precise-updates

« back to all changes in this revision

Viewing changes to test/vtab6.test

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-12-11 14:34:09 UTC
  • mfrom: (9.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091211143409-o29fahwmcmyd0vq1
Tags: 3.6.21-2
Run autoreconf to prevent FTBFS with new libtool (closes: #560660).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# virtual tables. The test cases in this file are copied from the file
15
15
# join.test, and some of the comments still reflect that.
16
16
#
17
 
# $Id: vtab6.test,v 1.4 2008/07/12 14:52:21 drh Exp $
 
17
# $Id: vtab6.test,v 1.5 2009/07/01 16:12:08 danielk1977 Exp $
18
18
 
19
19
set testdir [file dirname $argv0]
20
20
source $testdir/tester.tcl
265
265
  }
266
266
} {1 {cannot join using column a - column not present in both tables}}
267
267
do_test vtab6-3.5 {
268
 
  catchsql {
269
 
    SELECT * FROM t1 USING(a);
270
 
  }
271
 
} {0 {1 2 3 2 3 4 3 4 5}}
 
268
  catchsql { SELECT * FROM t1 USING(a) }
 
269
} {1 {a JOIN clause is required before USING}}
272
270
do_test vtab6-3.6 {
273
271
  catchsql {
274
272
    SELECT * FROM t1 JOIN t2 ON t3.a=t2.b;
494
492
do_test vtab6-11.2.0 {
495
493
  execsql {
496
494
    CREATE INDEX ab_i ON ab_r(b);
 
495
    CREATE INDEX bc_i ON bc_r(b);
497
496
  }
498
497
} {}
499
498
 
562
561
  catchsql {
563
562
    SELECT a, b, c FROM ab NATURAL JOIN bc;
564
563
  }
565
 
} {1 {table ab: xBestIndex returned an invalid plan}}
 
564
} {1 {table bc: xBestIndex returned an invalid plan}}
566
565
do_test vtab6-11.4.2 {
567
566
  catchsql {
568
567
    SELECT a, b, c FROM bc NATURAL JOIN ab;