[#7771] DDLDatabase should ignore storage clauses
This commit is contained in:
parent
1191d7915d
commit
a4ccdb3848
@ -127,6 +127,9 @@ public class DDLDatabase extends H2Database {
|
||||
connection = new org.h2.Driver().connect("jdbc:h2:mem:jooq-meta-extensions-" + UUID.randomUUID(), info);
|
||||
ctx = DSL.using(connection);
|
||||
|
||||
// [#7771] Ignore all parsed storage clauses when executing the statements
|
||||
ctx.data("org.jooq.meta.extensions.ddl.ignore-storage-clauses", true);
|
||||
|
||||
InputStream in = null;
|
||||
boolean loaded = false;
|
||||
in = DDLDatabase.class.getResourceAsStream(scripts);
|
||||
|
||||
@ -501,7 +501,8 @@ final class CreateTableImpl<R extends Record> extends AbstractQuery implements
|
||||
ctx.formatSeparator()
|
||||
.visit(K_COMMENT).sql(' ').visit(comment);
|
||||
|
||||
if (storage != null)
|
||||
// [#7772] This data() value should be available from ctx directly, not only from ctx.configuration()
|
||||
if (storage != null && ctx.configuration().data("org.jooq.meta.extensions.ddl.ignore-storage-clauses") == null)
|
||||
ctx.formatSeparator()
|
||||
.visit(storage);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user