1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

In CLI, ensure correct line-accumulation state whenever line(s) are dumped or processed. And test this.

FossilOrigin-Name: be211a9c59234ef202e772fcaae18be43c44e1e00674f137cad2d903e00bfcab
This commit is contained in:
larrybr
2021-10-03 22:03:59 +00:00
parent 5bf4715e01
commit d797d6b626
4 changed files with 34 additions and 10 deletions

View File

@ -18,6 +18,8 @@
# shell1-1.*: Basic command line option handling.
# shell1-2.*: Basic "dot" command token parsing.
# shell1-3.*: Basic test that "dot" command can be called.
# shell1-{4-8}.*: Test various "dot" commands's functionality.
# shell1-9.*: Basic test that "dot" commands and SQL intermix ok.
#
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -1224,4 +1226,22 @@ do_test shell1-8.4 {
| 6683623321994527 | -47 |
+------------------+-----+}}
#----------------------------------------------------------------------------
# Test cases shell1-9.*: Basic test that "dot" commands and SQL intermix ok.
#
do_test shell1-9.1 {
catchcmd :memory: {
.mode csv
/*
x */ select 1,2; --x
-- .nada
;
.mode csv
--x
select 2,1; select 3,4;
}
} {0 {1,2
2,1
3,4}}
finish_test