Merge the table-valued-function rowid fix.

FossilOrigin-Name: a06a6392bd48baa8b9bac2624869c0cc7da7e779
This commit is contained in:
drh
2015-08-19 19:26:13 +00:00
5 changed files with 20 additions and 10 deletions
+6
View File
@@ -48,6 +48,12 @@ do_catchsql_test tabfunc01-1.7 {
do_execsql_test tabfunc01-1.8 {
SELECT * FROM generate_series(0,32,5) ORDER BY rowid DESC;
} {30 25 20 15 10 5 0}
do_execsql_test tabfunc01-1.9 {
SELECT rowid, * FROM generate_series(0,32,5) ORDER BY value DESC;
} {1 30 2 25 3 20 4 15 5 10 6 5 7 0}
do_execsql_test tabfunc01-1.10 {
SELECT rowid, * FROM generate_series(0,32,5) ORDER BY +value DESC;
} {7 30 6 25 5 20 4 15 3 10 2 5 1 0}
do_execsql_test tabfunc01-2.1 {
CREATE TABLE t1(x);