Ticket Hash: | c51489c3b8f919c5143919ecbcdc40d4336aafaf | ||
Title: | Incorrect result from WITH RECURSIVE using DISTINCT | ||
Status: | Fixed | Type: | Code_Defect |
Severity: | Important | Priority: | Medium |
Subsystem: | Code_Generator | Resolution: | Fixed |
Last Modified: |
2020-09-29 11:52:53 4.61 years ago |
Created: |
2020-09-17 00:00:16 4.64 years ago |
Version Found In: |
User Comments: | ||||
drh added on 2020-09-17 00:00:16:
Test case:
The above should return 6 rows, but is returning 9 rows with all recent versions of SQLite. That 6 rows are correct is confirmed on sqlfiddle.com using PostgreSQL and SQL Server. Bisect shows the problem first appeared in check-in 45d8cc678d128f1d on 2014-03-21 (6.5 years ago!) and was first released with version 3.8.5. The problem has not been reported from the field in all that time, which tells us that it is not a high priority to fix. Problem reported on the Forum via post 1d3b0519e2. |