aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shell.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shell.c b/src/shell.c
index e41a3d46f..58771aa78 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.90 2004/02/14 16:31:04 drh Exp $
+** $Id: shell.c,v 1.91 2004/02/25 02:25:37 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -771,8 +771,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){
}else
if( c=='q' && strncmp(azArg[0], "quit", n)==0 ){
- if( p->db ) sqlite_close(p->db);
- exit(0);
+ rc = 1;
}else
if( c=='r' && strncmp(azArg[0], "read", n)==0 && nArg==2 ){