Make sure internal queries are well ordered, even when the

reverse_unordered_selects pragma is in effect.
Ticket [eb942c64a157].

FossilOrigin-Name: 0209f17180065d9c213b6c437be1c3c40660665f
This commit is contained in:
drh
2010-01-12 23:54:14 +00:00
parent 2b1e690ff1
commit 6a9c64b363
7 changed files with 49 additions and 17 deletions
+2
View File
@@ -102,6 +102,7 @@ SQLITE_READ sqlite_master name main {}
SQLITE_READ sqlite_master rootpage main {}
SQLITE_READ sqlite_master sql main {}
SQLITE_READ sqlite_master tbl_name main {}
SQLITE_READ sqlite_master ROWID main {}
}
do_test auth2-2.2 {
set ::authargs {}
@@ -121,6 +122,7 @@ SQLITE_READ sqlite_master name main {}
SQLITE_READ sqlite_master rootpage main {}
SQLITE_READ sqlite_master sql main {}
SQLITE_READ sqlite_master tbl_name main {}
SQLITE_READ sqlite_master ROWID main {}
}
do_test auth2-2.3 {
set ::authargs {}
+30
View File
@@ -33,11 +33,41 @@ do_test whereA-1.2 {
} {3 4.53 {} 2 hello world 1 2 3}
do_test whereA-1.3 {
db close
sqlite3 db test.db
db eval {
PRAGMA reverse_unordered_selects=1;
SELECT * FROM t1;
}
} {3 4.53 {} 2 hello world 1 2 3}
do_test whereA-1.4 {
db close
sqlite3 db test.db
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-1.5 {
db eval {
VACUUM;
SELECT * FROM t1 ORDER BY rowid;
}
} {1 2 3 2 hello world 3 4.53 {}}
do_test whereA-1.6 {
db eval {
PRAGMA reverse_unordered_selects;
}
} {1}
do_test whereA-1.7 {
db close
sqlite3 db test.db
db eval {
PRAGMA reverse_unordered_selects=1;
VACUUM;
SELECT * FROM t1;
}
} {3 4.53 {} 2 hello world 1 2 3}
do_test whereA-2.1 {
db eval {