You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Kasper Sørensen (JIRA)" <ji...@apache.org> on 2013/10/15 13:16:42 UTC
[jira] [Assigned] (METAMODEL-29) CreateTable builder API only
supports adding one column
[ https://issues.apache.org/jira/browse/METAMODEL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kasper Sørensen reassigned METAMODEL-29:
----------------------------------------
Assignee: Kasper Sørensen
I'll post a patch in a second...
> 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
>
> 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)