提交 c5a3778e authored 作者: Thomas Mueller's avatar Thomas Mueller

When the system property h2.lobInDatabase is set, CREATE TABLE ... AS SELECT…

When the system property h2.lobInDatabase is set, CREATE TABLE ... AS SELECT with a LOB column did not always work.
上级 31b0c80e
......@@ -124,6 +124,10 @@ public class CreateTable extends SchemaCommand {
}
}
}
data.id = getObjectId();
data.create = create;
data.session = session;
Table table = getSchema().createTable(data);
ArrayList<Sequence> sequences = New.arrayList();
for (Column c : data.columns) {
if (c.isAutoIncrement()) {
......@@ -135,10 +139,6 @@ public class CreateTable extends SchemaCommand {
sequences.add(seq);
}
}
data.id = getObjectId();
data.create = create;
data.session = session;
Table table = getSchema().createTable(data);
table.setComment(comment);
if (data.temporary && !data.globalTemporary) {
if (onCommitDrop) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论