parent
b3c8dce4ab
commit
46f3465c90
@ -39,6 +39,7 @@ package org.jooq;
|
||||
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
import static org.jooq.SQLDialect.MYSQL;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
|
||||
/**
|
||||
|
||||
@ -131,6 +131,7 @@ final class CreateTableImpl<R extends Record> extends AbstractQuery implements
|
||||
|
||||
|
||||
|
||||
|
||||
private final Table<?> table;
|
||||
private Select<?> select;
|
||||
private Boolean withData;
|
||||
@ -303,10 +304,36 @@ final class CreateTableImpl<R extends Record> extends AbstractQuery implements
|
||||
private final void accept0(Context<?> ctx) {
|
||||
if (comment != null && EMULATE_COMMENT_IN_BLOCK.contains(ctx.family())) {
|
||||
begin(ctx);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
accept1(ctx);
|
||||
|
||||
ctx.sql(';').formatSeparator()
|
||||
.visit(commentOnTable(table).is(comment)).sql(';');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ctx.sql(';');
|
||||
|
||||
ctx.formatSeparator();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ctx.visit(commentOnTable(table).is(comment));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ctx.sql(';');
|
||||
|
||||
end(ctx);
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user