Skip to content

Field names with capital letters in CSV files are not select-able #8

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Obtain a CSV file whose field headings (first row) contains capital leters
2. Try to run a select query on that field
3. Observe the "<fieldname> is not a known field" error.

What is the expected output? What do you see instead?
I expect to be able to select columns based on field headings regardless of 
their capitalization. Instead, I can only select columns whose field headings 
are all lowercase in the original CSV input.

What version of the product are you using? On what operating system?
I am using r33 of this project on PHP 5.4.

Please provide any additional information below.
A patch is attached. In my limited testing, removing the strtolower() calls 
wrapping the parser does not introduce other errors and resolves this issue. An 
example of a CSV file where the unpatched issue is reproducible is at 
http://viewportsizes.com/devices.csv

Original issue reported on code.google.com by meit...@gmail.com on 11 May 2015 at 2:00

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions