Split the OP_Last opcode into OP_Last and OP_SeekEnd. Use OP_SeekEnd to

position a cursor prior to appending.  Ticket [cb91bf4290c211d].

FossilOrigin-Name: 3e02474c7bbe16891a7cfc8771cf72f64cd2c0692779037982d7d307512a4f23
This commit is contained in:
drh
2017-08-01 19:53:43 +00:00
parent b7673ede37
commit 86b40dfd33
6 changed files with 53 additions and 35 deletions
+12
View File
@@ -158,5 +158,17 @@ do_test whereA-4.6 {
}
} {2 1 1}
# Ticket https://sqlite.org/src/tktview/cb91bf4290c211 2017-08-01
# Assertion fault following PRAGMA reverse_unordered_selects=ON.
#
do_execsql_test whereA-5.1 {
PRAGMA reverse_unordered_selects=on;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
CREATE INDEX t1b ON t1(b);
SELECT a FROM t1 WHERE b=-99 OR b>1;
} {1}
finish_test