Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-05-15 01:39:19 -0400
committerEike Stepper2013-05-15 01:39:19 -0400
commit7aad5028178d1e9e96893f0b6144ab64dc3d72c2 (patch)
tree27ce9b9bd07d0f4ac14d6fa311b228912cc2f0cb
parent2a1863eda26f4b1c70ae20d37ebb282e212e90c1 (diff)
downloadcdo-7aad5028178d1e9e96893f0b6144ab64dc3d72c2.tar.gz
cdo-7aad5028178d1e9e96893f0b6144ab64dc3d72c2.tar.xz
cdo-7aad5028178d1e9e96893f0b6144ab64dc3d72c2.zip
[407358] [DB] Error while creating the DB first time: inserting elements
(Oracle 11g) https://bugs.eclipse.org/bugs/show_bug.cgi?id=407358
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
index 66405206b7..348fdea592 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
@@ -832,14 +832,17 @@ public final class DBUtil
for (int i = 0; i < results.length; i++)
{
int result = results[i];
- if (result < 0 && result != Statement.SUCCESS_NO_INFO)
+ if (result != Statement.SUCCESS_NO_INFO)
{
- throw new DBException("Result " + i + " is not successful: " + result);
- }
+ if (result < 0)
+ {
+ throw new DBException("Result " + i + " is not successful: " + result);
+ }
- if (checkExactlyOne && result != 1)
- {
- throw new DBException("Result " + i + " did not affect exactly one row: " + result);
+ if (checkExactlyOne && result != 1)
+ {
+ throw new DBException("Result " + i + " did not affect exactly one row: " + result);
+ }
}
}
}

Back to the top