-
Notifications
You must be signed in to change notification settings - Fork 128
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
Invalid memory address error #6
Comments
Thanks for the error report. I will look into this. Otherwise I can also generate one myself. |
Absolutely. Here’s a sample.
|
http://www.postgresql.org/about/ It seems PostgreSQL has a column limit - but I will check whether that is really the problem.
|
Thanks - I was able to import this file manually to PostgreSQL, so I’m not sure if that’s the problem, but let me know what you find.
|
This seems to be the same bug. Minimal CSV file example:
Error (pgfutter 0.4) ~/D/P/d/wikilogs $ pgfutter --user "stian" --db "oisewiki" csv 5574sample.csv
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x7d151]
goroutine 1 [running]:
database/sql.(*Stmt).Exec(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/goroot/src/database/sql/sql.go:1302 +0x3e1
main.NewCSVImport(0x20862f4a0, 0x2085fb446, 0x6, 0x2085fb620, 0xb, 0x208672300, 0x5, 0x8, 0x0, 0x0, ...)
/usr/src/pgfutter/import.go:21 +0xfd
main.importCSV(0x7fff5fbffc30, 0xe, 0x20867a0e0, 0x61, 0x2085fb446, 0x6, 0x2085fb620, 0xb, 0x0, 0x55c470, ...)
/usr/src/pgfutter/csv.go:127 +0x444
main.func·003(0x208630a00)
/usr/src/pgfutter/pgfutter.go:165 +0x369
github.com/codegangsta/cli.Command.Run(0x380590, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3d05f0, 0x18, 0x0, ...)
/gopath/src/github.com/codegangsta/cli/command.go:174 +0x1403
github.com/codegangsta/cli.(*App).Run(0x208630780, 0x2085d4000, 0x7, 0x7, 0x0, 0x0)
/gopath/src/github.com/codegangsta/cli/app.go:187 +0x1221
main.main()
/usr/src/pgfutter/pgfutter.go:171 +0xba4
goroutine 5 [syscall]:
os/signal.loop()
/goroot/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
/goroot/src/os/signal/signal_unix.go:27 +0x35 |
Thanks for the sample. Now I can make a regression. |
Hey there,
Is there a column limitation to what pgfutter can import? Here's my code and resulting error message. These files have around 500 columns with a header row, but with every iteration of the file it throws an error, including after I reopen and save the .csv as UTF-8 encoding. Other, smaller files work just fine.
Here's the error that results. Other, much smaller .csv files import without any issue.
Thanks!
The text was updated successfully, but these errors were encountered: