Browse Source

A bug in SQLExec would prevent the execution of trailing,

non-semicolon-delimited statements.  Bugzilla Report 37764.
Submitted by Dave Brosius.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@360155 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
9a672c0324
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      WHATSNEW
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/SQLExec.java

+ 3
- 0
WHATSNEW View File

@@ -65,6 +65,9 @@ Changes that could break older environments:
file that somehow relied on content outside the firewall being unreachable: file that somehow relied on content outside the firewall being unreachable:
use the -noproxy command-line option to disable this new feature. use the -noproxy command-line option to disable this new feature.


* A bug in SQLExec would prevent the execution of trailing,
non-semicolon-delimited statements. Bugzilla Report 37764.

Fixed bugs: Fixed bugs:
----------- -----------




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

@@ -500,7 +500,7 @@ public class SQLExec extends JDBCTask {
} }
} }
// Catch any statements not followed by ; // Catch any statements not followed by ;
if (!sql.equals("")) {
if (sql.length() > 0) {
execSQL(sql.toString(), out); execSQL(sql.toString(), out);
} }
} }


Loading…
Cancel
Save