1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix a problem in cursor-hints for WITHOUT ROWID tables used in a RIGHT JOIN.

[forum:/forumpost/591006b1cc|Forum post 591006b1cc].

FossilOrigin-Name: 221fdcec964f8317b2c23e926cc23799615cd3b4239a8a9ff87a83588d05bc64
This commit is contained in:
drh
2023-03-24 19:17:25 +00:00
parent 4a1c8ed725
commit d23924d1ea
4 changed files with 19 additions and 10 deletions

View File

@ -159,4 +159,13 @@ do_test 4.6desc {
}
} {AND(AND(EQ(c0,22),GE(c1,10)),LE(c1,20))}
# 2023-03-24 https://sqlite.org/forum/forumpost/591006b1cc
#
reset_db
do_execsql_test 5.0 {
CREATE TABLE t1(x TEXT PRIMARY KEY) WITHOUT ROWID;
CREATE VIEW t2 AS SELECT 0 FROM t1 WHERE x>='a' OR x='1';
SELECT * FROM t2 RIGHT JOIN t1 ON true;
}
finish_test