1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Do not allow dot-commands to occur in the middle of a real SQL command. (CVS 385)

FossilOrigin-Name: ffb00bf36a9a5851ea4a69f9c7dd7ce412553e3b
This commit is contained in:
drh
2002-02-21 02:25:02 +00:00
parent 77c679c096
commit 2af0b2d78f
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.44 2002/01/24 00:00:21 drh Exp $
** $Id: shell.c,v 1.45 2002/02/21 02:25:03 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@ -784,7 +784,7 @@ static void process_input(struct callback_data *p, FILE *in){
char *zErrMsg;
while( (zLine = one_input_line(zSql, in))!=0 ){
if( p->echoOn ) printf("%s\n", zLine);
if( zLine && zLine[0]=='.' ){
if( zLine && zLine[0]=='.' && nSql==0 ){
do_meta_command(zLine, db, p);
free(zLine);
continue;