Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smit245 opened this issue Jun 8, 2023 · 1 comment

Comments

@smit245
Copy link

smit245 commented Jun 8, 2023

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.

@fendyh
Copy link

fendyh commented Jul 18, 2023

I'm facing the same issue (MySQL database). Attaching screenshots below for reference:
Screen Shot 2023-07-18 at 12 24 45
Screen Shot 2023-07-18 at 12 24 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants