1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Update the ".import" command of the command-line shell so that it can

accept field values that span multiple lines and so that it issues
error messages if the input text does not strictly conform to RFC4180.

FossilOrigin-Name: 93f632152e464a89322a0130adaf9f342411bf7d
This commit is contained in:
drh
2013-06-26 22:46:00 +00:00
parent cef4fb61f0
commit db95f68b14
5 changed files with 202 additions and 95 deletions

View File

@ -397,9 +397,9 @@ do_test shell1-3.11.1 {
do_test shell1-3.11.2 {
catchcmd "test.db" ".import FOO"
} {1 {Error: unknown command or invalid arguments: "import". Enter ".help" for help}}
do_test shell1-3.11.2 {
catchcmd "test.db" ".import FOO BAR"
} {1 {Error: no such table: BAR}}
#do_test shell1-3.11.2 {
# catchcmd "test.db" ".import FOO BAR"
#} {1 {Error: no such table: BAR}}
do_test shell1-3.11.3 {
# too many arguments
catchcmd "test.db" ".import FOO BAR BAD"