aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2002-04-04 15:10:12 +0000
committerdrh <drh@noemail.net>2002-04-04 15:10:12 +0000
commit41e941dda62d0f24a97591e3c609ad3a932a2837 (patch)
tree0101176db0c03b4ef7a9d42ddaf795e69ecc200c /src
parent54473229393cbc85360721cac3ef876b0a00f5e9 (diff)
downloadsqlite-41e941dda62d0f24a97591e3c609ad3a932a2837.tar.gz
sqlite-41e941dda62d0f24a97591e3c609ad3a932a2837.zip
Add an fflush() call to shell.c to insure that all output has been written
before we prompt for a new line of input. (CVS 519) FossilOrigin-Name: 932274187e045ce331177b1a640ed62da4a22d94
Diffstat (limited to 'src')
-rw-r--r--src/shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell.c b/src/shell.c
index b2368d009..ad0710a8c 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -12,7 +12,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
-** $Id: shell.c,v 1.47 2002/03/03 23:06:01 drh Exp $
+** $Id: shell.c,v 1.48 2002/04/04 15:10:12 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -783,7 +783,7 @@ static void process_input(struct callback_data *p, FILE *in){
char *zSql = 0;
int nSql = 0;
char *zErrMsg;
- while( (zLine = one_input_line(zSql, in))!=0 ){
+ while( fflush(p->out), (zLine = one_input_line(zSql, in))!=0 ){
if( p->echoOn ) printf("%s\n", zLine);
if( zLine && zLine[0]=='.' && nSql==0 ){
do_meta_command(zLine, db, p);