[
https://issues.apache.org/jira/browse/METAMODEL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795088#comment-13795088
]
Kasper Sørensen commented on METAMODEL-29:
------------------------------------------
Please VOTE on the patch if you think it's worthy!
> 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)