Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add test script selectC.test which demonstrates ticket #3381. (CVS 5708) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
3847faff55d4bd7574785c3b18d5c95e |
User & Date: | drh 2008-09-16 15:09:54.000 |
Context
2008-09-16
| ||
15:50 | Use (file nativename (pwd)) instead of just (pwd) to find the name of the current directory to pass to "PRAGMA temp_store_directory" in pragma.test. This helps the test pass on non-unix systems. (CVS 5709) (check-in: 50feaa3707 user: danielk1977 tags: trunk) | |
15:09 | Add test script selectC.test which demonstrates ticket #3381. (CVS 5708) (check-in: 3847faff55 user: drh tags: trunk) | |
14:38 | If the xAccess() call used by "PRAGMA temp_store_directory = /new/path/" to determine if the supplied directory is writable returns an error, assume the directory is not writable. (CVS 5707) (check-in: e8418588f2 user: danielk1977 tags: trunk) | |
Changes
Added test/selectC.test.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | # 2008 September 16 # # 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. # # $Id: selectC.test,v 1.1 2008/09/16 15:09:54 drh Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl do_test selectC-1.1 { execsql { CREATE TABLE t1(a, b, c); INSERT INTO t1 VALUES(1,'aaa','bbb'); INSERT INTO t1 SELECT * FROM t1; INSERT INTO t1 VALUES(2,'ccc','ddd'); SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE y IN ('aaabbb','xxx'); } } {1 aaabbb} do_test selectC-1.2 { execsql { SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE b||c IN ('aaabbb','xxx'); } } {1 aaabbb} do_test selectC-1.3 { execsql { SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE y='aaabbb' } } {1 aaabbb} do_test selectC-1.4 { execsql { SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE b||c='aaabbb' } } {1 aaabbb} do_test selectC-1.5 { execsql { SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE x=2 } } {2 cccddd} do_test selectC-1.6 { execsql { SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE a=2 } } {2 cccddd} do_test selectC-1.7 { execsql { SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE +y='aaabbb' } } {1 aaabbb} finish_test |