]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add a -column option to the sqlite command-line utility.
authordrh <drh@noemail.net>
Mon, 8 Apr 2002 02:42:57 +0000 (02:42 +0000)
committerdrh <drh@noemail.net>
Mon, 8 Apr 2002 02:42:57 +0000 (02:42 +0000)
Patch from Matthew O. Persico. (CVS 522)

FossilOrigin-Name: 760bf568c882d7b28746b1e004309ef08d2ff4c0

manifest
manifest.uuid
src/shell.c

index 667d9cf8c7113bab1373d1cf5a11b4ff0622815c..6845636b53cf5989161e3bdde65c31588e2a11b0 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Added\sthe\slast_insert_rowid()\sSQL\sfunction.\s(CVS\s521)
-D 2002-04-06T14:10:47
+C Add\sa\s-column\soption\sto\sthe\ssqlite\scommand-line\sutility.\nPatch\sfrom\sMatthew\sO.\sPersico.\s(CVS\s522)
+D 2002-04-08T02:42:58
 F Makefile.in 50f1b3351df109b5774771350d8c1b8d3640130d
 F Makefile.template 89e373b2dad0321df00400fa968dc14b61a03296
 F README a4c0ba11354ef6ba0776b400d057c59da47a4cc0
@@ -39,7 +39,7 @@ F src/parse.y 9a8a2311dd95101bb02b3991042e619eea49729a
 F src/printf.c 300a90554345751f26e1fc0c0333b90a66110a1d
 F src/random.c 19e8e00fe0df32a742f115773f57651be327cabe
 F src/select.c 92aef3f69e90dc065d680d88b1f075409e9249bb
-F src/shell.c cf57c66e6cc1bc3c2c78602da25308ce04cb1179
+F src/shell.c 994ca7c8c40c40a95011812013fbbf9828f5a0e7
 F src/shell.tcl 27ecbd63dd88396ad16d81ab44f73e6c0ea9d20e
 F src/sqlite.h.in 1dae50411aee9439860d7fbe315183c582d27197
 F src/sqliteInt.h 73e7d0f39a3c11d395fc422986959261bd193eba
@@ -131,7 +131,7 @@ F www/speed.tcl da8afcc1d3ccc5696cfb388a68982bc3d9f7f00f
 F www/sqlite.tcl 8b5884354cb615049aed83039f8dfe1552a44279
 F www/tclsqlite.tcl 829b393d1ab187fd7a5e978631b3429318885c49
 F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
-P 28ce42f7872e2660faa22e66b508db9b1f046af0
-R 0b5a813afe2cf2bdabedc7aeca66c0d3
+P 6aca3f86bc08849e9d806fdd490f98e4daf71025
+R aaa35423730c084fb0e18ed46a6b9e24
 U drh
-Z 679d6245f83771ba2f6bf195e2401218
+Z ef03ff4a004c157733200eb9aba8b910
index af43dda9921e41b0caa094e20fa1e754bfad6a7b..926bc58df3469f313f9ef35dc712c63f28debc30 100644 (file)
@@ -1 +1 @@
-6aca3f86bc08849e9d806fdd490f98e4daf71025
\ No newline at end of file
+760bf568c882d7b28746b1e004309ef08d2ff4c0
\ No newline at end of file
index ad0710a8c9cea0a8a407e1b86957a45e55325b9a..3e953bdae56e02c83c23505d19bd8112ac5a7828 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.48 2002/04/04 15:10:12 drh Exp $
+** $Id: shell.c,v 1.49 2002/04/08 02:42:58 drh Exp $
 */
 #include <stdlib.h>
 #include <string.h>
@@ -855,6 +855,10 @@ int main(int argc, char **argv){
       data.mode = MODE_Line;
       argc--;
       argv++;
+    }else if( strcmp(argv[1],"-column")==0 ){
+      data.mode = MODE_Column;
+      argc--;
+      argv++;
     }else if( argc>=3 && strcmp(argv[1],"-separator")==0 ){
       sprintf(data.separator,"%.*s",(int)sizeof(data.separator)-1,argv[2]);
       argc -= 2;