未验证 提交 2f948bcb 编写于 作者: A Anastasiya 提交者: GitHub

#14625 avoid empty columns comments NPE (#15840)

上级 dad088fe
......@@ -327,7 +327,7 @@ public abstract class SQLTableColumnManager<OBJECT_TYPE extends DBSEntityAttribu
actionList.add(new SQLDatabasePersistAction(
"Comment column",
"COMMENT ON COLUMN " + DBUtils.getObjectFullName(table, DBPEvaluationContext.DDL) + "." + DBUtils.getQuotedIdentifier(column) +
" IS " + SQLUtils.quoteString(column.getDataSource(), column.getDescription())));
" IS " + SQLUtils.quoteString(column.getDataSource(), CommonUtils.notEmpty(column.getDescription()))));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册