summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-24 12:13:22 (EDT)
committerEike Stepper2007-08-24 12:13:22 (EDT)
commit400099248d07a4587360f3ecaf50b0f372210763 (patch)
tree0f5825e2a8f991c0ffb1819a7fa0013793cda686
parent8097840f029f6b5202689f733bf33af007098323 (diff)
downloadcdo-400099248d07a4587360f3ecaf50b0f372210763.zip
cdo-400099248d07a4587360f3ecaf50b0f372210763.tar.gz
cdo-400099248d07a4587360f3ecaf50b0f372210763.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java1
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java9
2 files changed, 8 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java
index 31f443b..658465d 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ValueMapping.java
@@ -57,7 +57,6 @@ public abstract class ValueMapping extends Mapping
builder.append(getTable());
builder.append(" VALUES (");
appendRevisionInfo(builder, revision, hasFullRevisionInfo());
- builder.append(", ");
for (IAttributeMapping attributeMapping : attributeMappings)
{
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java
index 7ce4c56..2d9ddc8 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBType.java
@@ -123,6 +123,13 @@ public enum DBType
public void appendValue(StringBuilder builder, Object value)
{
- builder.append(value);
+ if (value == null)
+ {
+ builder.append("NULL");
+ }
+ else
+ {
+ builder.append(value);
+ }
}
} \ No newline at end of file