Skip to content

giving panic: runtime error: invalid memory address or nil pointer dereference #45

@smit245

Description

@smit245

i have a problem with the schema i am trying to import with entimport
there is a column which has name "id"
when i change it's name it successfully generates schema but when the column name is "id" then it gives panic error

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xbecc2c]

then i debug ran the command in debug mode and found the problem on this file in line number 300
whenever id column comes the fields map have no key named "id" that's why it gives nil pointer exception

hope you find the solution for this problem because every table in my database have id column which is a primary key.

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