Skip Menu |

This queue is for tickets about the SQL-Statement CPAN distribution.

Report information
The Basics
Id: 53186
Status: resolved
Priority: 0/
Queue: SQL-Statement

People
Owner: Nobody in particular
Requestors: kssgill [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.23
Fixed in: 1.24



Hi This is an easily reproducable bug. 

SQL - DISTINCT clause dosen't work.

SELECT data_display_mask FROM test.csv returns 200 plus rows. SELECT DISTINCT data_display_mask FROM test.csv returns the warning message and same 200 rows.

If i do an awk, sort -u for unique ( values of the row ) I get 36 values, which is what I would expect.

Certainly a bug in the code.

-Kanwar

 perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.2.24-6.2.3, archname=i686-linux-thread-multi

DBD::CSV  0.26
SQL::Parser 1.23
DBI 1.609

 


example:

Specifying DISTINCT when using aggregate functions isn't reasonable - ignored. at /opt/perl2exe/perl5/lib/site_perl/5.10.0/SQL/Parser.pm line 496.
87060
87060
87060
87060
<snipped>

 

SQL used is SELECT DISTINCT entry_id FROM test.csv

The issue has been reported by HMBRAND, too - the fix will be included in 1.24.

Thanks for reporting.
Fixed in 1.24