1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

Send the "Incomplete SQL" error message of the CLI to stderr instead of

stdout.  Ticket #3476. (CVS 5885)

FossilOrigin-Name: dacae200477afffec826b3ca1517f33b110b6122
This commit is contained in:
drh
2008-11-11 18:55:03 +00:00
parent 95338ab70c
commit dfef499856
3 changed files with 10 additions and 10 deletions

View File

@@ -12,7 +12,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
** $Id: shell.c,v 1.186 2008/11/11 00:30:12 drh Exp $
** $Id: shell.c,v 1.187 2008/11/11 18:55:04 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -1757,7 +1757,7 @@ static int process_input(struct callback_data *p, FILE *in){
}
}
if( zSql ){
if( !_all_whitespace(zSql) ) printf("Incomplete SQL: %s\n", zSql);
if( !_all_whitespace(zSql) ) fprintf(stderr, "Incomplete SQL: %s\n", zSql);
free(zSql);
}
free(zLine);