Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | 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) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
932274187e045ce331177b1a640ed62d |
User & Date: | drh 2002-04-04 15:10:12.000 |
Context
2002-04-06
| ||
13:57 | Make the FROM clause on a SELECT optional. If omitted, the result of the SELECT is a single row consisting of the values in the expression list. (CVS 520) (check-in: 28ce42f787 user: drh tags: trunk) | |
2002-04-04
| ||
15:10 | 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) (check-in: 932274187e user: drh tags: trunk) | |
02:10 | Fix for bug #2: Add support for TABLE.* in SELECT statements. (CVS 518) (check-in: c2320eabfe user: drh tags: trunk) | |
Changes
Changes to src/shell.c.
︙ | ︙ | |||
8 9 10 11 12 13 14 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** ** $Id: shell.c,v 1.48 2002/04/04 15:10:12 drh Exp $ */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include "sqlite.h" #include <ctype.h> #if !defined(_WIN32) && !defined(WIN32) |
︙ | ︙ | |||
779 780 781 782 783 784 785 | static char *Argv0; static void process_input(struct callback_data *p, FILE *in){ char *zLine; char *zSql = 0; int nSql = 0; char *zErrMsg; | | | 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 | static char *Argv0; static void process_input(struct callback_data *p, FILE *in){ char *zLine; char *zSql = 0; int nSql = 0; char *zErrMsg; 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); free(zLine); continue; } if( zSql==0 ){ |
︙ | ︙ |