Incorrect join result with duplicate WHERE clause constraint (again)

Jim Bosch <[email protected]>
Newsgroups gmane.comp.db.sqlite.general
Message-ID <CAN+0q26P6838YCCL1e1KSEKYqvfxWG58c6SBy1pikh_tM9N4+w@mail.gmail.com>
In 3.31.1, this self-contained script, which joins to an unnecessary table
and adds what should be a redundant but harmless WHERE constraint on it:

https://gist.github.com/TallJimbo/d819876a77cfd79312ad48508cfdd8a2

returns incorrect results (which clearly violate the redundant
constraint).  Removing either of the two redundant constraints fixes the
problem.  The results in 3.27.2 and 3.30.1 were correct.

Tests were done with SQLite packages from the Anaconda Python distribution,
against regular file-based databases.  I didn't see any active tickets that
appeared to be related, but I did find
https://www.sqlite.org/src/tktview?name=cf5ed20fc8, which was reported
against 3.25 and seems to have fixed before any of the versions I tested -
I'm not sure if this is just a reappearance of that bug, but it's at least
very similar.

Hope this is useful!

Jim Bosch
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.