ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27446] - Make <sql> task to suppress "N rows affected" messages
Date Thu, 27 May 2004 21:45:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27446>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27446

Make <sql> task to suppress "N rows affected" messages

bretweinraub@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW



------- Additional Comments From bretweinraub@yahoo.com  2004-05-27 21:45 -------
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");

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message