~ubuntu-branches/ubuntu/hardy/sqlite3/hardy

« back to all changes in this revision

Viewing changes to test/where.test

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-07-23 14:35:04 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20070723143504-v52h2illx871jas3
Tags: 3.4.1-0ubuntu1
New upstream release. Closes LP: #127223.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# This file implements regression tests for SQLite library.  The
12
12
# focus of this file is testing the use of indices in WHERE clases.
13
13
#
14
 
# $Id: where.test,v 1.42 2007/05/14 11:34:47 drh Exp $
 
14
# $Id: where.test,v 1.43 2007/06/25 16:29:34 danielk1977 Exp $
15
15
 
16
16
set testdir [file dirname $argv0]
17
17
source $testdir/tester.tcl
1137
1137
  } 
1138
1138
} {4/4 4/1 1/4 1/1 sort}
1139
1139
 
 
1140
# Ticket #2445.
 
1141
#
 
1142
# There was a crash that could occur when a where clause contains an
 
1143
# alias for an expression in the result set, and that expression retrieves
 
1144
# a column of the second or subsequent table in a join.
 
1145
#
 
1146
do_test where-15.1 {
 
1147
  execsql {
 
1148
    CREATE TEMP TABLE t1 (a, b, c, d, e);
 
1149
    CREATE TEMP TABLE t2 (f);
 
1150
    SELECT t1.e AS alias FROM t2, t1 WHERE alias = 1 ;
 
1151
  }
 
1152
} {}
1140
1153
 
1141
1154
integrity_check {where-99.0}
1142
1155