Author: wyoung
Date: Mon Jan 11 22:43:43 2010
New Revision: 2618

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2618&view=rev
Log:
ssqlsxlat -o now puts tabs before "field" directive so its output is
legal -i input.

Modified:
    trunk/ssx/genv2.cpp

Modified: trunk/ssx/genv2.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/ssx/genv2.cpp?rev=2618&r1=2617&r2=2618&view=diff
==============================================================================
--- trunk/ssx/genv2.cpp (original)
+++ trunk/ssx/genv2.cpp Mon Jan 11 22:43:43 2010
@@ -48,6 +48,15 @@
 {
        ParseV2::LineListIt it;
        for (it = pparse->begin(); it != pparse->end(); ++it) {
+               if (dynamic_cast<ParseV2::Field*>(*it)) {
+                       // 'field' directives must be indented under the 
preceding
+                       // 'table'.  We don't want to hard-code this in
+                       // ParseV2::Field::print() in case we later start 
calling
+                       // those routines for other reasons, such as to 
construct
+                       // error messages.  It's really a special case of -o, 
not
+                       // really something that print() routine should know.
+                       os << '\t';
+               }
                os << **it << endl;
        }
 


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to