Skip to content

create_table error when source data has ID field #406

Description

@ianengelbrecht

Importing data into sqlite, the data that I'm reading from source (a dbf file) already has a field called ID. I've tried:

table = db.create_table(table_name, primary_id = 'ID')

but that throws sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) duplicate column name: ID

I also tried lowercase 'id' in case case the field name is case sensitive but still getting the error.

Is this expected behaviour?

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