SELECT DISTINCT returns incorrect results

Bug #1089478 reported by KayNettle
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
sqlite3 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

We are moving to precise andI have a user that reports:

% sqlite3 /scratch/cluster/cdunham/437.leslie3d/4/simpoint/trace.db
SELECT b FROM
(SELECT DISTINCT(b) AS b FROM cfg WHERE a IN(SELECT a FROM cfg
           GROUP BY a HAVING COUNT(b) > 1))
WHERE b=1232;

This query should return one row because of the DISTINCT() in the inner
query, but on the angrist-* (Precise) machines, it returns two.

The version of SQLite on these machines is 3.7.9, and the bug is also
present in 3.7.10. The bug was fixed in SQLite 3.7.11 (March 2012), and the
latest SQLite is 3.7.14.1.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sqlite3 (Ubuntu):
status: New → Confirmed
Revision history for this message
DavidM (david-maciejak) wrote :

is there still a maintainer for this package ? we really need an update, thx

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.