1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

The shell program now ignores extra whitespace at the end of dot-commands. (CVS 1288)

FossilOrigin-Name: b6817e99bd97f427b1cfd16328d612e1a7d70d0a
This commit is contained in:
drh
2004-03-09 13:37:45 +00:00
parent a2cfd57491
commit 06333689a7
3 changed files with 9 additions and 8 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.91 2004/02/25 02:25:37 drh Exp $
** $Id: shell.c,v 1.92 2004/03/09 13:37:45 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -546,6 +546,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){
*/
while( zLine[i] && nArg<ArraySize(azArg) ){
while( isspace(zLine[i]) ){ i++; }
if( zLine[i]==0 ) break;
if( zLine[i]=='\'' || zLine[i]=='"' ){
int delim = zLine[i++];
azArg[nArg++] = &zLine[i];