[jOOQ/jOOQ#9483] Fix export of COMMENT ON MATERIALIZED VIEW

This commit is contained in:
Lukas Eder 2023-09-18 18:15:15 +02:00
parent 5853a7e3da
commit 9f3645f94e

View File

@ -399,7 +399,9 @@ final class DDL {
Comment tComment = table.getCommentPart();
if (!StringUtils.isEmpty(tComment.getComment()))
if (table.getTableType().isView())
if (table.getTableType() == MATERIALIZED_VIEW)
result.add(ctx.commentOnMaterializedView(table).is(tComment));
else if (table.getTableType() == VIEW)
result.add(ctx.commentOnView(table).is(tComment));
else
result.add(ctx.commentOnTable(table).is(tComment));