aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2004-02-25 02:25:37 +0000
committerdrh <drh@noemail.net>2004-02-25 02:25:37 +0000
commitf73287ceb0b2421f02190092f878a876e9ae7bb9 (patch)
tree0132873dc6e5684f791e962b73e9e0b7278a6009 /src
parent946966f2a1e40ac73bc37dfa498d6e39a0425e08 (diff)
downloadsqlite-f73287ceb0b2421f02190092f878a876e9ae7bb9.tar.gz
sqlite-f73287ceb0b2421f02190092f878a876e9ae7bb9.zip
Shell program saves command-line history on a ".quit". Ticket #614. (CVS 1270)
FossilOrigin-Name: 114b72f8608b8e08fad863a1446fb1ef59610efd
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 ){