Community
Participate
Working Groups
The syntax for the ALTER TABLE ADD <column> statement may be different on different database platforms. There should be a mechanism for a database platform to adapt the generated statement for their particular needs. (Background: SAP HANA database requires a slightly different syntax to add a column to a table). I'll add a patch that adds a "writeAddColumnClause" to the DatabasePlatform class that allows to modify the string following the ALTER TABLE. Please review and let me know if that's okay or if you'd prefer a different approach.
Created attachment 225272 [details] Patch that allows to overwrite the ALTER TABLE ADD column statement
I made a github contribution for that change and created a pull request: https://github.com/sabineheider/eclipselink.runtime/commit/af3f0148ec09546adc67f904ddd31eb00cd46eb8
Checked in changes. reviewed by: Tom Ware - reviewed submitted changes Tested with Core and JPA LRG
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink