Skip to content

readCSV does not produce an array convertable to query when firstRowHeader is off #443

@Daemach

Description

@Daemach

The normal functionality of spreadsheet-cfml is to return a query with column1,column2,columnN as headers if the first row isn't used. But readCSV produces an empty column array in this case, which prevents deserializeJson( serializeJson( result ), false ) from working properly. An empty column array would be ignored normally, so it seems safe to populate this with column1,column2,columnN as headers if the first row isn't used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions