]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Change the ".database" command in the shell to allocate more characters to
authordrh <drh@noemail.net>
Wed, 17 Mar 2004 23:42:12 +0000 (23:42 +0000)
committerdrh <drh@noemail.net>
Wed, 17 Mar 2004 23:42:12 +0000 (23:42 +0000)
the database name and filename. (CVS 1300)

FossilOrigin-Name: 85238f06902851dd5085395501a0ab2d6a2b9814

manifest
manifest.uuid
src/shell.c

index 21efd8949d465d2e4d5ec302e8750f52bc04a99d..e21cae420e8a7e6bf548d3b715940160340c1e64 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sa\sVDBE\sstack\soverflow\sthat\soccurs\swhen\sthe\sleft-hand\sside\sof\san\sIN\nexpression\sis\sNULL\sand\sthe\sresult\sis\sstored\son\sthe\sstack\srather\sthan\sused\nto\scontrol\sa\sjump.\s\sTicket\s#668.\s(CVS\s1299)
-D 2004-03-17T23:32:08
+C Change\sthe\s".database"\scommand\sin\sthe\sshell\sto\sallocate\smore\scharacters\sto\nthe\sdatabase\sname\sand\sfilename.\s(CVS\s1300)
+D 2004-03-17T23:42:13
 F Makefile.in 5d50a7d2a6a641e90a0312fc30d4e9c96b3903da
 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -47,7 +47,7 @@ F src/pragma.c 621d319580e9e23712ec232e8be1786cdae06b36
 F src/printf.c 8c58b7b6d4069eec6ebe2d46bdbc3a89a367bf95
 F src/random.c 775913e0b7fbd6295d21f12a7bd35b46387c44b2
 F src/select.c 3833e2b64cc6d249385ee44e13bf49c9ae5b903d
-F src/shell.c 01fdfff666631cfe7f8047cfe9a8a62e56b37b50
+F src/shell.c 920af040d3a33ea8919c82cee45b424ad841cee0
 F src/sqlite.h.in 35bec264dfb4965bbfeb7e75221f8658f210c30d
 F src/sqliteInt.h 235ce244b62bb26cc9ab394fb7a0724dd4e65c83
 F src/table.c d845cb101b5afc1f7fea083c99e3d2fa7998d895
@@ -188,7 +188,7 @@ F www/sqlite.tcl 3c83b08cf9f18aa2d69453ff441a36c40e431604
 F www/tclsqlite.tcl b9271d44dcf147a93c98f8ecf28c927307abd6da
 F www/vdbe.tcl 9b9095d4495f37697fd1935d10e14c6015e80aa1
 F www/whentouse.tcl a8335bce47cc2fddb07f19052cb0cb4d9129a8e4
-P 0a12473c4ae370ec34f1f431dd6d7d6ffa25d41a
-R 78357d97f8c7b89c610dec1a1190b368
+P fc7a7975b03c144c2db3566facd008d3701c735e
+R 27f8a17f6a5bc218c66951d71c19907c
 U drh
-Z 1080973831d1d9ef12eb93cdd69e8b88
+Z 1ed9d826f53f7d6dd9bd0241bd44560c
index 79ad66f0cd61cc93665cf1daa9e0b3ac67adf143..15e53360820e3ce872bec9444f1e7b02da21f517 100644 (file)
@@ -1 +1 @@
-fc7a7975b03c144c2db3566facd008d3701c735e
\ No newline at end of file
+85238f06902851dd5085395501a0ab2d6a2b9814
\ No newline at end of file
index f9127b58201c8e4dc61e68846cb8a71d5c031ba0..cca11a019c0e0ab6af37e56f9d9196b4ba4bd67b 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.92 2004/03/09 13:37:45 drh Exp $
+** $Id: shell.c,v 1.93 2004/03/17 23:42:13 drh Exp $
 */
 #include <stdlib.h>
 #include <string.h>
@@ -571,8 +571,11 @@ static int do_meta_command(char *zLine, struct callback_data *p){
     char *zErrMsg = 0;
     open_db(p);
     memcpy(&data, p, sizeof(data));
-    data.showHeader = 0;
+    data.showHeader = 1;
     data.mode = MODE_Column;
+    data.colWidth[0] = 3;
+    data.colWidth[1] = 15;
+    data.colWidth[2] = 58;
     sqlite_exec(p->db, "PRAGMA database_list; ", callback, &data, &zErrMsg);
     if( zErrMsg ){
       fprintf(stderr,"Error: %s\n", zErrMsg);