mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Make CLI complain about incomplete input at EOF. Fix for regression reported at https://sqlite.org/forum/forumpost/718f489a43be3197
FossilOrigin-Name: 72029cf7cdb266703cc8716102dbba8e6f2666e1f47409f42c39528795757b73
This commit is contained in:
@ -188,4 +188,13 @@ b
|
||||
2
|
||||
}}
|
||||
|
||||
# Test for rejection of incomplete input at EOF.
|
||||
# Reported at https://sqlite.org/forum/forumpost/718f489a43be3197
|
||||
do_test shell2-1.4.7 {
|
||||
catchcmd ":memory:" {
|
||||
SELECT 'unclosed;}
|
||||
} {1 {Parse error near line 2: unrecognized token: "'unclosed;"
|
||||
SELECT 'unclosed;
|
||||
^--- error here}}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user