From 9f3645f94eb8f43d10e5c5f56e9328ea4e1b7304 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 18 Sep 2023 18:15:15 +0200 Subject: [PATCH] [jOOQ/jOOQ#9483] Fix export of COMMENT ON MATERIALIZED VIEW --- jOOQ/src/main/java/org/jooq/impl/DDL.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jOOQ/src/main/java/org/jooq/impl/DDL.java b/jOOQ/src/main/java/org/jooq/impl/DDL.java index 41df88b71a..696851b774 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DDL.java +++ b/jOOQ/src/main/java/org/jooq/impl/DDL.java @@ -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));