[
https://issues.apache.org/jira/browse/METAMODEL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kasper Sørensen resolved METAMODEL-29.
--------------------------------------
Resolution: Fixed
Patch accepted under lazy concensus. Going to commit this patch shortly.
> CreateTable builder API only supports adding one column
> -------------------------------------------------------
>
> Key: METAMODEL-29
> URL: https://issues.apache.org/jira/browse/METAMODEL-29
> Project: Metamodel
> Issue Type: Bug
> Reporter: Kasper Sørensen
> Assignee: Kasper Sørensen
> Priority: Minor
> Attachments: create-table.patch
>
>
> The CreateTable class which can be used as a pre-built UpdateScript
> implementation has a flaw in it's interface since it only supports calling
> the "withColumn" method once. This is how it's supposed to work:
> {code}
> UpdateableDataContext dc = ...
> dc.executeUpdate(new
> CreateTable("foo").withColumn("bar").ofType(VARCHAR).withColumn("baz").ofType(INTEGER));
> {code}
> But it seems unfortunately the returned interface after the first withColumn
> call isn't properly letting you call withColumn again.
--
This message was sent by Atlassian JIRA
(v6.1#6144)