Update of /cvsroot/monetdb/clients/src/mapiclient
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26368

Modified Files:
        MapiClient.mx 
Log Message:
Rendering of statements given on the command line are useful, e.g.

MapiClient -lsql -s "select * from tables;" --format=csv


Index: MapiClient.mx
===================================================================
RCS file: /cvsroot/monetdb/clients/src/mapiclient/MapiClient.mx,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- MapiClient.mx       15 Aug 2007 14:43:05 -0000      1.46
+++ MapiClient.mx       15 Aug 2007 15:38:34 -0000      1.47
@@ -714,8 +714,13 @@
                return 1;
        }
 
-       if (formatter == TABLEformatter && pagewidth>=0)
+       if ( formatter == TABLEformatter || pagewidth >= 0 ||
+                formatter == CSVformatter || formatter == TABformatter) {
+               if( pagewidth < 0 ) pagewidth = 0;
                SQLrenderer(hdl);
+       } else
+       if (formatter == XMLformatter )
+               XMLrenderer(hdl);
        else 
                RAWrenderer(hdl);
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to