提交 58041d0c 编写于 作者: S serge-rider

#2585 PG table column comments in DDL (for existing columns)

上级 1c1afe3a
......@@ -93,7 +93,7 @@ public class PostgreTableManager extends SQLTableManager<PostgreTableBase, Postg
" IS " + SQLUtils.quoteString(command.getObject(), command.getObject().getDescription())));
}
for (PostgreTableColumn column : command.getObject().getCachedAttributes()) {
if (!column.isPersisted() && !CommonUtils.isEmpty(column.getDescription())) {
if (!CommonUtils.isEmpty(column.getDescription())) {
actions.add(new SQLDatabasePersistAction("Set column comment", "COMMENT ON COLUMN " +
DBUtils.getObjectFullName(command.getObject(), DBPEvaluationContext.DDL) + "." + DBUtils.getQuotedIdentifier(column) +
" IS " + SQLUtils.quoteString(column, column.getDescription())));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册