1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

Preserve blank lines in the middle of SQL statements in the shell.

Ticket #352 (CVS 1026)

FossilOrigin-Name: bcf5eeecdfd9897bc7c257119d7515fd34d222c1
This commit is contained in:
drh
2003-06-16 00:16:41 +00:00
parent 4d9fc3231b
commit f817b6be7f
3 changed files with 9 additions and 9 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.80 2003/05/19 23:55:30 drh Exp $
** $Id: shell.c,v 1.81 2003/06/16 00:16:41 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -1002,7 +1002,7 @@ static void process_input(struct callback_data *p, FILE *in){
seenInterrupt = 0;
}
if( p->echoOn ) printf("%s\n", zLine);
if( _all_whitespace(zLine) ) continue;
if( (zSql==0 || zSql[0]==0) && _all_whitespace(zLine) ) continue;
if( zLine && zLine[0]=='.' && nSql==0 ){
int rc = do_meta_command(zLine, p);
free(zLine);