in reply to Bug in DBD::CSV?

Hi, I don't get the bug when I run your program on my system, which is Win XP, Perl 5.8.7, ActiveState Build 813, with these DBD::CSV-related module versions:
DBI 1.46 Text::CSV_XS 0.23 SQL::Statement 1.09 DBD::File 0.34 DBD::CSV 0.22
The output for CSV and for SQLite are identical. And your SQL looks OK to me.