ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs SQLExec.java
Date Mon, 23 Feb 2004 19:28:23 GMT
peterreilly    2004/02/23 11:28:23

  Modified:    src/main/org/apache/tools/ant/taskdefs SQLExec.java
  Log:
  Fix for SQLExec when used with Informix.
  PR: 27162
  Obtained from: Bohuslav Roztocil
  
  Revision  Changes    Path
  1.67      +4 -2      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.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- SQLExec.java	23 Feb 2004 19:17:16 -0000	1.66
  +++ SQLExec.java	23 Feb 2004 19:28:23 -0000	1.67
  @@ -531,8 +531,10 @@
                       }
                   }
                   ret = statement.getMoreResults();
  -                updateCount = statement.getUpdateCount();
  -                resultSet = statement.getResultSet();
  +                if (ret) {
  +                    updateCount = statement.getUpdateCount();
  +                    resultSet = statement.getResultSet();
  +                }
               } while (ret);
   
               log(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