You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by cs...@apache.org on 2007/09/07 17:50:47 UTC

svn commit: r573618 - /beehive/trunk/system-controls/src/jdbc/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java

Author: cschoett
Date: Fri Sep  7 08:50:46 2007
New Revision: 573618

URL: http://svn.apache.org/viewvc?rev=573618&view=rev
Log:
Applied patch provided by Steven Dalton for BEEHIVE-1203.  
DRTs: jdbc-control drts passed


Modified:
    beehive/trunk/system-controls/src/jdbc/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java

Modified: beehive/trunk/system-controls/src/jdbc/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java
URL: http://svn.apache.org/viewvc/beehive/trunk/system-controls/src/jdbc/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java?rev=573618&r1=573617&r2=573618&view=diff
==============================================================================
--- beehive/trunk/system-controls/src/jdbc/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java (original)
+++ beehive/trunk/system-controls/src/jdbc/org/apache/beehive/controls/system/jdbc/JdbcControlImpl.java Fri Sep  7 08:50:46 2007
@@ -309,11 +309,12 @@
             // process returned data
             //
             ResultSet rs = null;
-            int updateCount = ps.getUpdateCount();
+            int updateCount = -1;
 
             if (hasResults) {
                 rs = ps.getResultSet();
             }
+            updateCount = ps.getUpdateCount();
 
             if (sqlStatement.getsGeneratedKeys()) {
                 rs = ps.getGeneratedKeys();