We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A panic is thrown when a json field is null.
To Reproduce Steps to reproduce the behavior:
[ { "user_id": "1", "first_name": null, "last_name": null, } ]
sqly --sql "select * from user limit 1" --csv user.json
goroutine 1 [running]: github.com/nao1215/sqly/domain/model.(*JSON).ToTable(0x1400010aed0) /Users/bob/go/pkg/mod/github.com/nao1215/sqly@v0.5.2/domain/model/json.go:32 +0x5d8 github.com/nao1215/sqly/shell.CommandList.importCommand(0x5?, 0x1400014c8c0, {0x1400007e280?, 0x14000026960?, 0x14000026950?}) /Users/bob/go/pkg/mod/github.com/nao1215/sqly@v0.5.2/shell/import.go:45 +0x50c github.com/nao1215/sqly/shell.(*Shell).init(0x1400014c8c0) /Users/bob/go/pkg/mod/github.com/nao1215/sqly@v0.5.2/shell/shell.go:128 +0xb0 github.com/nao1215/sqly/shell.(*Shell).Run(0x1400014c8c0) /Users/bob/go/pkg/mod/github.com/nao1215/sqly@v0.5.2/shell/shell.go:80 +0x34 main.run({0x140000120f0?, 0x1049cd220?, 0x104d9b068?}) /Users/bob/go/pkg/mod/github.com/nao1215/sqly@v0.5.2/main.go:30 +0xb4 main.main() /Users/bob/go/pkg/mod/github.com/nao1215/sqly@v0.5.2/main.go:16 +0x34
Expected behavior one row of csv data
user_id,person_name 1,,
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
@jedvardsson Thanks for writing two bug reports. It takes time to fix bugs.
Sorry, something went wrong.
Fix this bug at PR #46.
No branches or pull requests
A panic is thrown when a json field is null.
To Reproduce
Steps to reproduce the behavior:
sqly --sql "select * from user limit 1" --csv user.json
Expected behavior
one row of csv data
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: