提交 317263c4 编写于 作者: S Serge Rider

#6647 PG: process column/contraint/trigger comments for new table create


Former-commit-id: 94658661
上级 3e68ba6d
......@@ -62,7 +62,8 @@ public abstract class PostgreTableManagerBase extends SQLTableManager<PostgreTab
"COMMENT ON " + (table.isView() ? ((PostgreViewBase)table).getViewType() : "TABLE") + " " + table.getFullyQualifiedName(DBPEvaluationContext.DDL) +
" IS " + SQLUtils.quoteString(table, comment)));
}
if (isDDL) {
if (isDDL || !table.isPersisted()) {
// show comment commands for DDL and new objects
try {
if (showComments) {
// Column comments
......@@ -113,7 +114,9 @@ public abstract class PostgreTableManagerBase extends SQLTableManager<PostgreTab
}
}
PostgreUtils.getObjectGrantPermissionActions(monitor, table, actions, options);
if (isDDL) {
PostgreUtils.getObjectGrantPermissionActions(monitor, table, actions, options);
}
} catch (DBException e) {
log.error(e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册