Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/sqlite/src/test/descidx2.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/descidx1.test ('k') | third_party/sqlite/src/test/descidx3.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2005 December 21 1 # 2005 December 21
2 # 2 #
3 # The author disclaims copyright to this source code. In place of 3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing: 4 # a legal notice, here is a blessing:
5 # 5 #
6 # May you do good and not evil. 6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others. 7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give. 8 # May you share freely, never taking more than you give.
9 # 9 #
10 #************************************************************************* 10 #*************************************************************************
11 # This file implements regression tests for SQLite library. The 11 # This file implements regression tests for SQLite library. The
12 # focus of this script is descending indices. 12 # focus of this script is descending indices.
13 # 13 #
14 # $Id: descidx2.test,v 1.5 2008/03/19 00:21:31 drh Exp $ 14 # $Id: descidx2.test,v 1.5 2008/03/19 00:21:31 drh Exp $
15 # 15 #
16 16
17 set testdir [file dirname $argv0] 17 set testdir [file dirname $argv0]
18 source $testdir/tester.tcl 18 source $testdir/tester.tcl
19 19
20 # Do not use a codec for tests in this file, as the database file is
21 # manipulated directly using tcl scripts (using the [hexio_write] command).
22 #
23 do_not_use_codec
24
25
20 db eval {PRAGMA legacy_file_format=OFF} 26 db eval {PRAGMA legacy_file_format=OFF}
21 27
22 # This procedure sets the value of the file-format in file 'test.db' 28 # This procedure sets the value of the file-format in file 'test.db'
23 # to $newval. Also, the schema cookie is incremented. 29 # to $newval. Also, the schema cookie is incremented.
24 # 30 #
25 proc set_file_format {newval} { 31 proc set_file_format {newval} {
26 hexio_write test.db 44 [hexio_render_int32 $newval] 32 hexio_write test.db 44 [hexio_render_int32 $newval]
27 set schemacookie [hexio_get_int [hexio_read test.db 40 4]] 33 set schemacookie [hexio_get_int [hexio_read test.db 40 4]]
28 incr schemacookie 34 incr schemacookie
29 hexio_write test.db 40 [hexio_render_int32 $schemacookie] 35 hexio_write test.db 40 [hexio_render_int32 $schemacookie]
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 cksort {SELECT b FROM t1 WHERE a>3 AND a<8 ORDER BY a} 176 cksort {SELECT b FROM t1 WHERE a>3 AND a<8 ORDER BY a}
171 } {4 5 6 7 nosort} 177 } {4 5 6 7 nosort}
172 do_test descidx2-3.25 { 178 do_test descidx2-3.25 {
173 cksort {SELECT b FROM t1 WHERE a>3 AND a<8 ORDER BY a ASC} 179 cksort {SELECT b FROM t1 WHERE a>3 AND a<8 ORDER BY a ASC}
174 } {4 5 6 7 nosort} 180 } {4 5 6 7 nosort}
175 do_test descidx2-3.26 { 181 do_test descidx2-3.26 {
176 cksort {SELECT b FROM t1 WHERE a>3 AND a<8 ORDER BY a DESC} 182 cksort {SELECT b FROM t1 WHERE a>3 AND a<8 ORDER BY a DESC}
177 } {7 6 5 4 nosort} 183 } {7 6 5 4 nosort}
178 184
179 finish_test 185 finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/descidx1.test ('k') | third_party/sqlite/src/test/descidx3.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698