Commit f75a358
committed
Better error messages when CSV import fails due to an unexpected EOF
When the CSV import fails because of an unexpected end of file show a
better error message. When the file ends but we are still expected more
data to come, i.e. we are still in quote mode, no INSERT statement
failed. So showing the last SQLite error message will never show you a
proper error message. Instead tell the user that their settings might be
wrong or the file malformed.
See issue #2330.1 parent 0572b76 commit f75a358
3 files changed
+13
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
| 677 | + | |
| 678 | + | |
678 | 679 | | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | 680 | | |
684 | | - | |
685 | | - | |
686 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
687 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
688 | 690 | | |
689 | 691 | | |
690 | 692 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
0 commit comments