From: drh Date: Thu, 4 Apr 2002 15:10:12 +0000 (+0000) Subject: Add an fflush() call to shell.c to insure that all output has been written X-Git-Tag: version-3.6.10~5556 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41e941dda62d0f24a97591e3c609ad3a932a2837;p=thirdparty%2Fsqlite.git 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 --- diff --git a/manifest b/manifest index 5cc1962ddc..10cf7a2220 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Fix\sfor\sbug\s#2:\sAdd\ssupport\sfor\sTABLE.*\sin\sSELECT\sstatements.\s(CVS\s518) -D 2002-04-04T02:10:56 +C Add\san\sfflush()\scall\sto\sshell.c\sto\sinsure\sthat\sall\soutput\shas\sbeen\swritten\nbefore\swe\sprompt\sfor\sa\snew\sline\sof\sinput.\s(CVS\s519) +D 2002-04-04T15:10:12 F Makefile.in 50f1b3351df109b5774771350d8c1b8d3640130d F Makefile.template 89e373b2dad0321df00400fa968dc14b61a03296 F README a4c0ba11354ef6ba0776b400d057c59da47a4cc0 @@ -39,7 +39,7 @@ F src/parse.y d63f93b67edf9e318afea87b71d69af3334a9649 F src/printf.c 300a90554345751f26e1fc0c0333b90a66110a1d F src/random.c 19e8e00fe0df32a742f115773f57651be327cabe F src/select.c 92aef3f69e90dc065d680d88b1f075409e9249bb -F src/shell.c b3454229599246b944cdb5b95753af3fca5d8bb0 +F src/shell.c cf57c66e6cc1bc3c2c78602da25308ce04cb1179 F src/shell.tcl 27ecbd63dd88396ad16d81ab44f73e6c0ea9d20e F src/sqlite.h.in 1dae50411aee9439860d7fbe315183c582d27197 F src/sqliteInt.h 73e7d0f39a3c11d395fc422986959261bd193eba @@ -131,7 +131,7 @@ F www/speed.tcl da8afcc1d3ccc5696cfb388a68982bc3d9f7f00f F www/sqlite.tcl 8b5884354cb615049aed83039f8dfe1552a44279 F www/tclsqlite.tcl 829b393d1ab187fd7a5e978631b3429318885c49 F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218 -P ffdeec3087e168acaa04a6331e91369e2e0f8345 -R 2030ad886be3f6f3ab16a87454cce255 +P c2320eabfe44d6eb05c02b76547e5bd48a29943c +R ef6fd0215a968b215139b8a713f806b2 U drh -Z 6dbde5dc0db37de113b78d968afab2db +Z e1fdaafdc22b731c2498d3444c88f13c diff --git a/manifest.uuid b/manifest.uuid index b5e7916e96..d4dca5499d 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -c2320eabfe44d6eb05c02b76547e5bd48a29943c \ No newline at end of file +932274187e045ce331177b1a640ed62da4a22d94 \ No newline at end of file diff --git a/src/shell.c b/src/shell.c index b2368d009a..ad0710a8c9 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 #include @@ -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);