summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2009-04-02 11:12:27 (EDT)
committerStefan Winkler2009-04-02 11:12:27 (EDT)
commitc76a3e67e611c31767cb1ccfdd934b9c9b475b12 (patch)
tree056ad2c0e83eb32bde6b35ed492524561cc6f734
parent029af64644e6c7fda4b385ffe5fceff98aac1888 (diff)
downloadcdo-c76a3e67e611c31767cb1ccfdd934b9c9b475b12.zip
cdo-c76a3e67e611c31767cb1ccfdd934b9c9b475b12.tar.gz
cdo-c76a3e67e611c31767cb1ccfdd934b9c9b475b12.tar.bz2
[270969] [DB] Checking of return result of batched statements is not standards conform
https://bugs.eclipse.org/bugs/show_bug.cgi?id=270969
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/jdbc/PreparedStatementJDBCDelegate.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/jdbc/PreparedStatementJDBCDelegate.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/jdbc/PreparedStatementJDBCDelegate.java
index c89bdb6..86045d1 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/jdbc/PreparedStatementJDBCDelegate.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/jdbc/PreparedStatementJDBCDelegate.java
@@ -234,11 +234,7 @@ public class PreparedStatementJDBCDelegate extends AbstractJDBCDelegate
for (int result : results)
{
- if (entry.getKey().getElement1() != StmtType.DELETE_REFERENCES
- && entry.getKey().getElement1() != StmtType.UPDATE_REFERENCE_VERSION)
- {
- checkState(result == 1, "Batch execution did not return '1' for " + entry.getKey().toString());
- }
+ checkState(result != Statement.EXECUTE_FAILED, "Batch execution returned EXECUTE_FAILED!");
}
}
catch (SQLException ex)