You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@apache.org on 2003/09/22 02:54:31 UTC

cvs commit: ant/src/main/org/apache/tools/ant/taskdefs SQLExec.java

conor       2003/09/21 17:54:31

  Modified:    src/main/org/apache/tools/ant/taskdefs SQLExec.java
  Log:
  Make SQL task work under Oracle
  
  Revision  Changes    Path
  1.62      +1 -1      ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
  
  Index: SQLExec.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.java,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -w -u -r1.61 -r1.62
  --- SQLExec.java	15 Sep 2003 16:55:01 -0000	1.61
  +++ SQLExec.java	22 Sep 2003 00:54:31 -0000	1.62
  @@ -554,7 +554,7 @@
                   ret = statement.getMoreResults();
                   updateCount = statement.getUpdateCount();
                   resultSet = statement.getResultSet();
  -            } while ((resultSet != null) || (updateCount != -1));
  +            } while (ret);
   
               log(updateCountTotal + " rows affected",
                   Project.MSG_VERBOSE);
  
  
  

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