Skip to content

Import from CSV not naming columns correctly #522

Closed

Description

@2ndCharter

v. 3.8.0 for Windows (64 bit)

  1. Create new sqlite database.
  2. When prompted to create table, hit cancel.
  3. Go to File > Import > Table from CSV file...
  4. Select a CSV file where the column names are in the first row.
  5. Check option for "Column names in first line".
  6. Click "OK".

Table will be created but the column names will still be in the first row. Columns will be named "field[n]...".

Perhaps this is intentional but most other db GUIs I've worked with would take that first row and name the columns based on the text in that column's cell. That's the expectation I have when I select that option. If I don't select that option, I still get the column names in one of the rows but I now get a blank line above that row at row #1.

Activity

  1. added
    bugConfirmed bugs or reports that are very likely to be bugs.
    on Feb 17, 2016
  2. justinclift commented on Feb 17, 2016

    @justinclift
    Member

    Yeah, that sounds like a bug. 😦

  3. wierzba3 commented on Apr 4, 2016

    @wierzba3
    Contributor

    I've followed those same exact steps and could not re-create this bug. The columns are named as expected. Is there anything else you did not mention in your test case? (Using windows 7 x64)

  4. 2ndCharter commented on Apr 4, 2016

    @2ndCharter
    Author

    I forgot to post back a follow-up. The problem wasn't with the sqlitebrowser, it is with the CSV. If the tool that generates the file has white space before your first row, probably a line break, then you get the effect mentioned.

  5. justinclift commented on Apr 4, 2016

    @justinclift
    Member

    Ahhh cool, thanks for taking the time to update this. 😄

  6. removed
    bugConfirmed bugs or reports that are very likely to be bugs.
    on Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions