incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r595682 - /incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/database/MySqlBroker.java
Date Fri, 16 Nov 2007 14:43:45 GMT
Author: toback
Date: Fri Nov 16 06:43:45 2007
New Revision: 595682

URL: http://svn.apache.org/viewvc?rev=595682&view=rev
Log:
Small change to make deletes not throw a sqlexception.

Modified:
    incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/database/MySqlBroker.java

Modified: incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/database/MySqlBroker.java
URL: http://svn.apache.org/viewvc/incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/database/MySqlBroker.java?rev=595682&r1=595681&r2=595682&view=diff
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/database/MySqlBroker.java
(original)
+++ incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/database/MySqlBroker.java
Fri Nov 16 06:43:45 2007
@@ -112,10 +112,11 @@
       if (stmt instanceof DelegatingCallableStatement) {
           logger.info("Stmt: "+((DelegatingCallableStatement)stmt).getInnermostDelegate());
       }
-      if (stmt.executeQuery().getInt(1) != 1) {
+
+      stmt.executeQuery();
+      if (stmt.getInt(1) != 1) {
         ret = true;
       }
-      conn.commit();
       stmt.close();
     } catch (SQLException e) {
       if (logger.isInfoEnabled()) {



Mime
View raw message