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

Unified Diff: third_party/sqlite/test/whereA.test

Issue 3108030: Move bundled copy of sqlite one level deeper to better separate it... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/test/where9.test ('k') | third_party/sqlite/test/whereB.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/test/whereA.test
===================================================================
--- third_party/sqlite/test/whereA.test (revision 56608)
+++ third_party/sqlite/test/whereA.test (working copy)
@@ -1,126 +0,0 @@
-# 2009 February 23
-#
-# 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. The
-# focus of this file is testing the reverse_select_order pragma.
-#
-# $Id: whereA.test,v 1.3 2009/06/10 19:33:29 drh Exp $
-
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-
-do_test whereA-1.1 {
- db eval {
- CREATE TABLE t1(a INTEGER PRIMARY KEY, b UNIQUE, c);
- INSERT INTO t1 VALUES(1,2,3);
- INSERT INTO t1 values(2,'hello','world');
- INSERT INTO t1 VALUES(3,4.53,NULL);
- SELECT * FROM t1
- }
-} {1 2 3 2 hello world 3 4.53 {}}
-do_test whereA-1.2 {
- db eval {
- PRAGMA reverse_unordered_selects=1;
- SELECT * FROM t1;
- }
-} {3 4.53 {} 2 hello world 1 2 3}
-
-do_test whereA-1.3 {
- db eval {
- PRAGMA reverse_unordered_selects=1;
- SELECT * FROM t1 ORDER BY rowid;
- }
-} {1 2 3 2 hello world 3 4.53 {}}
-
-do_test whereA-2.1 {
- db eval {
- PRAGMA reverse_unordered_selects=0;
- SELECT * FROM t1 WHERE a>0;
- }
-} {1 2 3 2 hello world 3 4.53 {}}
-do_test whereA-2.2 {
- db eval {
- PRAGMA reverse_unordered_selects=1;
- SELECT * FROM t1 WHERE a>0;
- }
-} {3 4.53 {} 2 hello world 1 2 3}
-
-do_test whereA-2.3 {
- db eval {
- PRAGMA reverse_unordered_selects=1;
- SELECT * FROM t1 WHERE a>0 ORDER BY rowid;
- }
-} {1 2 3 2 hello world 3 4.53 {}}
-
-do_test whereA-3.1 {
- db eval {
- PRAGMA reverse_unordered_selects=0;
- SELECT * FROM t1 WHERE b>0;
- }
-} {1 2 3 3 4.53 {} 2 hello world}
-do_test whereA-3.2 {
- db eval {
- PRAGMA reverse_unordered_selects=1;
- SELECT * FROM t1 WHERE b>0;
- }
-} {2 hello world 3 4.53 {} 1 2 3}
-do_test whereA-3.3 {
- db eval {
- PRAGMA reverse_unordered_selects=1;
- SELECT * FROM t1 WHERE b>0 ORDER BY b;
- }
-} {1 2 3 3 4.53 {} 2 hello world}
-
-do_test whereA-4.1 {
- db eval {
- CREATE TABLE t2(x);
- INSERT INTO t2 VALUES(1);
- INSERT INTO t2 VALUES(2);
- SELECT x FROM t2;
- }
-} {2 1}
-# Do an SQL statement. Append the search count to the end of the result.
-#
-proc count sql {
- set ::sqlite_sort_count 0
- return [concat [execsql $sql] $::sqlite_sort_count]
-}
-do_test whereA-4.2 { ;# Ticket #3904
- db eval {
- CREATE INDEX t2x ON t2(x);
- }
- count {
- SELECT x FROM t2;
- }
-} {2 1 0}
-do_test whereA-4.3 {
- count {
- SELECT x FROM t2 ORDER BY x;
- }
-} {1 2 0}
-do_test whereA-4.4 {
- count {
- SELECT x FROM t2 ORDER BY x DESC;
- }
-} {2 1 0}
-do_test whereA-4.5 {
- db eval {DROP INDEX t2x;}
- count {
- SELECT x FROM t2 ORDER BY x;
- }
-} {1 2 1}
-do_test whereA-4.6 {
- count {
- SELECT x FROM t2 ORDER BY x DESC;
- }
-} {2 1 1}
-
-
-finish_test
« no previous file with comments | « third_party/sqlite/test/where9.test ('k') | third_party/sqlite/test/whereB.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698