1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Change the -init option to the command-line shell to honor the -bail option.

Also change it to report an error if the filename mentioned cannot be
opened.

FossilOrigin-Name: a29f54bd2c032374d7235bb1f9d4c04c094611bbc7d274b7b92722b5b802050c
This commit is contained in:
drh
2020-11-25 13:59:47 +00:00
parent f862b55a56
commit b7c46aa8c9
4 changed files with 19 additions and 10 deletions

View File

@ -64,6 +64,10 @@ do_test shell1-1.2.1 {
} {1 1 1 1}
# -init filename read/process named file
forcedelete FOO
set out [open FOO w]
puts $out ""
close $out
do_test shell1-1.3.1 {
catchcmd "-init FOO test.db" ""
} {0 {}}