Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modify the ALTER TABLE ADD <column> syntax for the SAP HANA database …
…platform

Bug 397559

Signed-off-by: Sabine Heider <sabine.heider@sap.com>
  • Loading branch information
sabineheider committed Jan 8, 2013
1 parent 89106f5 commit 0bc06de
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -41,10 +41,12 @@
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>
Expand Down Expand Up @@ -520,4 +522,11 @@ protected void appendCalendar(Calendar calendar, Writer writer) throws IOExcepti
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(")");
}
}

0 comments on commit 0bc06de

Please sign in to comment.