aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabine Heider2013-01-07 06:26:34 (EST)
committertware2013-02-27 10:30:17 (EST)
commit3986d3937275d6a918ce3a684cc8913789450137 (patch)
tree7a9e0768e0721642db8d4faf3b6cb01bf463e719
parent89106f515530b763a76179832b8e1fbcbc17f58e (diff)
downloadincubator-3986d3937275d6a918ce3a684cc8913789450137.zip
incubator-3986d3937275d6a918ce3a684cc8913789450137.tar.gz
incubator-3986d3937275d6a918ce3a684cc8913789450137.tar.bz2
Modify the ALTER TABLE ADD <column> syntax for the SAP HANA database platform
Bug 397559 Signed-off-by: Sabine Heider <sabine.heider@sap.com>
-rw-r--r--extensions/org.eclipse.persistence.platform.database.hana/src/org/eclipse/persistence/platform/database/HANAPlatform.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/org.eclipse.persistence.platform.database.hana/src/org/eclipse/persistence/platform/database/HANAPlatform.java b/extensions/org.eclipse.persistence.platform.database.hana/src/org/eclipse/persistence/platform/database/HANAPlatform.java
index d139377..0569abe 100644
--- a/extensions/org.eclipse.persistence.platform.database.hana/src/org/eclipse/persistence/platform/database/HANAPlatform.java
+++ b/extensions/org.eclipse.persistence.platform.database.hana/src/org/eclipse/persistence/platform/database/HANAPlatform.java
@@ -41,10 +41,12 @@ import org.eclipse.persistence.internal.expressions.SQLSelectStatement;
import org.eclipse.persistence.internal.helper.ClassConstants;
import org.eclipse.persistence.internal.helper.Helper;
import org.eclipse.persistence.internal.helper.NonSynchronizedVector;
+import org.eclipse.persistence.internal.sessions.AbstractSession;
import org.eclipse.persistence.platform.database.DatabasePlatform;
import org.eclipse.persistence.queries.ReadQuery;
import org.eclipse.persistence.queries.ValueReadQuery;
import org.eclipse.persistence.tools.schemaframework.FieldDefinition;
+import org.eclipse.persistence.tools.schemaframework.TableDefinition;
/**
* <b>Database Platform for SAP HANA</b> <br>
@@ -520,4 +522,11 @@ public final class HANAPlatform extends DatabasePlatform {
writer.write(Helper.printCalendar(calendar));
writer.write("')");
}
+
+ @Override
+ public void writeAddColumnClause(Writer writer, AbstractSession session, TableDefinition table, FieldDefinition field) throws IOException {
+ writer.write("ADD (");
+ field.appendDBString(writer, session, table);
+ writer.write(")");
+ }
}