1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

Cause the command-line shell to return non-zero if the final SQL statement

is incomplete.

FossilOrigin-Name: 177fff3b98b101b98f1e7d334b6a80530b645565
This commit is contained in:
drh
2014-10-10 13:08:33 +00:00
parent 6e1a037357
commit bf59bf94b2
3 changed files with 9 additions and 8 deletions

View File

@@ -3725,6 +3725,7 @@ static int process_input(ShellState *p, FILE *in){
if( nSql ){
if( !_all_whitespace(zSql) ){
fprintf(stderr, "Error: incomplete SQL: %s\n", zSql);
errCnt++;
}
free(zSql);
}