You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2005/12/30 20:51:46 UTC

svn commit: r360155 - in /ant/core/trunk: WHATSNEW src/main/org/apache/tools/ant/taskdefs/SQLExec.java

Author: mbenson
Date: Fri Dec 30 11:51:44 2005
New Revision: 360155

URL: http://svn.apache.org/viewcvs?rev=360155&view=rev
Log:
A bug in SQLExec would prevent the execution of trailing,
non-semicolon-delimited statements.  Bugzilla Report 37764.
Submitted by Dave Brosius.

Modified:
    ant/core/trunk/WHATSNEW
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java

Modified: ant/core/trunk/WHATSNEW
URL: http://svn.apache.org/viewcvs/ant/core/trunk/WHATSNEW?rev=360155&r1=360154&r2=360155&view=diff
==============================================================================
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Fri Dec 30 11:51:44 2005
@@ -65,6 +65,9 @@
   file that somehow relied on content outside the firewall being unreachable:
   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:
 -----------
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java?rev=360155&r1=360154&r2=360155&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SQLExec.java Fri Dec 30 11:51:44 2005
@@ -500,7 +500,7 @@
             }
         }
         // Catch any statements not followed by ;
-        if (!sql.equals("")) {
+        if (sql.length() > 0) {
             execSQL(sql.toString(), out);
         }
     }



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