Browse Source

Don't try to print out result set if the execute method returns false

PR:	1727
Submitted by:	Gael_Marziou@hp.com (Gael Marziou)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269278 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
6a50cd2269
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/main/org/apache/tools/ant/taskdefs/SQLExec.java

+ 4
- 3
src/main/org/apache/tools/ant/taskdefs/SQLExec.java View File

@@ -524,9 +524,10 @@ public class SQLExec extends Task {
log(statement.getUpdateCount()+" rows affected",
Project.MSG_VERBOSE);
}
if (print) {
printResults(out);
else {
if (print) {
printResults(out);
}
}
SQLWarning warning = conn.getWarnings();


Loading…
Cancel
Save