~ubuntu-branches/ubuntu/maverick/sqlite3/maverick-updates

« back to all changes in this revision

Viewing changes to test/temptable.test

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2008-10-01 20:16:18 UTC
  • mfrom: (3.1.20 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081001201618-yfvqqj1qs29wdtcc
Tags: 3.5.9-5
Backport fix for distinct on indexes (closes: #500792).

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# This file implements tests for temporary tables and indices.
14
14
#
15
 
# $Id: temptable.test,v 1.17 2006/01/24 00:15:16 drh Exp $
 
15
# $Id: temptable.test,v 1.19 2007/10/09 08:29:33 danielk1977 Exp $
16
16
 
17
17
set testdir [file dirname $argv0]
18
18
source $testdir/tester.tcl
404
404
} {1 {no such table: t9}}
405
405
 
406
406
file delete -force test2.db test2.db-journal
407
 
do_test temptable-7.1 {
408
 
  catchsql {
409
 
    ATTACH 'test2.db' AS two;
410
 
    CREATE TEMP TABLE two.abc(x,y);
411
 
  }
412
 
} {1 {temporary table name must be unqualified}}
 
407
ifcapable attach {
 
408
  do_test temptable-7.1 {
 
409
    catchsql {
 
410
      ATTACH 'test2.db' AS two;
 
411
      CREATE TEMP TABLE two.abc(x,y);
 
412
    }
 
413
  } {1 {temporary table name must be unqualified}}
 
414
}
 
415
 
 
416
# Need to do the following for tcl 8.5 on mac. On that configuration, the
 
417
# -readonly flag is taken so seriously that a subsequent [file delete -force]
 
418
# (required before the next test file can be executed) will fail.
 
419
#
 
420
catch {file attributes test.db -readonly 0}
413
421
 
414
422
finish_test