]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix a bug in the ".databases" command of the command-line shell.
authordrh <drh@noemail.net>
Tue, 26 Oct 2004 00:08:10 +0000 (00:08 +0000)
committerdrh <drh@noemail.net>
Tue, 26 Oct 2004 00:08:10 +0000 (00:08 +0000)
Ticket #973 (CVS 2030)

FossilOrigin-Name: 507d8e6f5cff308116289b27b3138e5bbfd55352

manifest
manifest.uuid
src/shell.c

index 5f4e35ecc7e64e39fc26f8fbea1eb2092a30ae1c..c64a217e163f7230fc900b78ee78e901f69c4b48 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Minor\soptimizations\sin\sthe\spragma\smodule.\s(CVS\s2029)
-D 2004-10-25T20:33:44
+C Fix\sa\sbug\sin\sthe\s".databases"\scommand\sof\sthe\scommand-line\sshell.\nTicket\s#973\s(CVS\s2030)
+D 2004-10-26T00:08:11
 F Makefile.in 52c1cc106cad9148d4b7cb387b458e82dc86b339
 F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457
 F README a01693e454a00cc117967e3f9fdab2d4d52e9bc1
@@ -60,7 +60,7 @@ F src/pragma.c 263e20f7640df1e7937f1c71372fa286356aaf09
 F src/printf.c 7a92adc00b758cd5ce087dae80181a8bbdb70ed2
 F src/random.c eff68e3f257e05e81eae6c4d50a51eb88beb4ff3
 F src/select.c de51ec24aef0d5370819dac6c2613460effac42c
-F src/shell.c 2012beeea6b334c8e570e40107928036ce5bf895
+F src/shell.c 55adda3cf3c1cc2f6c1919aac17b2318f9c2a96f
 F src/sqlite.h.in 4f97b5907acfd2a5068cb0cec9d5178816734db7
 F src/sqliteInt.h 008c205896a1c531ec6249de20ecfe23c89ae243
 F src/table.c 25b3ff2b39b7d87e8d4a5da0713d68dfc06cbee9
@@ -252,7 +252,7 @@ F www/tclsqlite.tcl 560ecd6a916b320e59f2917317398f3d59b7cc25
 F www/vdbe.tcl 59288db1ac5c0616296b26dce071c36cb611dfe9
 F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0
 F www/whentouse.tcl fdacb0ba2d39831e8a6240d05a490026ad4c4e4c
-P 7b9886f8d4db366bc7dbf25495f0d3b907d25689
-R e866ede2f03d84f2dce38e1442866c10
+P 63efd50a1608eb4ccac44a233c0f77c3956f9fa0
+R e6e805c18831202f7aa1208998801bf4
 U drh
-Z 5a8b8e324cda1249d7cb76835accaa40
+Z d0d86ad3084fbbf918c3ce35a36ba329
index e7ace737589bd96cc8cb0962a17eca93a180bfd4..4188f4c61f21a9cc651b9a9c590f4d549a928f1b 100644 (file)
@@ -1 +1 @@
-63efd50a1608eb4ccac44a233c0f77c3956f9fa0
\ No newline at end of file
+507d8e6f5cff308116289b27b3138e5bbfd55352
\ No newline at end of file
index f9bb0b25c9e915b1ccf8ce22439d2f1f864f5ff1..0472670db587098608d5e4d874405ce5e7722458 100644 (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.116 2004/10/07 00:32:40 drh Exp $
+** $Id: shell.c,v 1.117 2004/10/26 00:08:11 drh Exp $
 */
 #include <stdlib.h>
 #include <string.h>
@@ -882,6 +882,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){
     data.colWidth[0] = 3;
     data.colWidth[1] = 15;
     data.colWidth[2] = 58;
+    data.cnt = 0;
     sqlite3_exec(p->db, "PRAGMA database_list; ", callback, &data, &zErrMsg);
     if( zErrMsg ){
       fprintf(stderr,"Error: %s\n", zErrMsg);