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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user