I use <sql> output for further processing and need to have only results of SQL statements without any additional messages. Headers are suppressed with attribute "showheaders" but there is no way to remove "N rows affected" messages after each executed statement. Suggestion - introduce new attribute "showfooters" or "showaffected". Thanks, Andriy
What point is the N rows affected anyway?
I wrote the code to fix this; but can't commit as I am not a committer. As such I'm unassigning it from me. Index: SQLExec.java =================================================================== RCS file: /home/cvspublic/ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.java,v retrieving revision 1.67 diff -r1.67 SQLExec.java 135a136,140 > * Print SQL results statistics (rows affected) > */ > private boolean showfooters = null; > > /** 317a323,331 > * Conditionally print the SQL "rows affected" line. > * @param showfooters if true prints the "rows affected" line > * @since Ant 1.6 > */ > > public void setShowfooters (boolean showfooters) {this.showfooters = showfooters;} > public boolean getShowfooters () {return showfooters;} > > /** 543c557 < if (print) { --- > if (print && showfooters) { 545c559 < line.append(updateCountTotal + " rows affected"); --- > line.append(updateCountTotal + " rows affected");
I've added this property into the task now (in trunk/head). property is showtrailers