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

#5611 Comment on trigger fix


Former-commit-id: 3392e9e3
上级 e7556252
......@@ -69,7 +69,7 @@ public class PostgreTriggerManager extends SQLTriggerManager<PostgreTrigger, Pos
if (command.getProperty(DBConstants.PROP_ID_DESCRIPTION) != null) {
actions.add(new SQLDatabasePersistAction(
"Comment trigger",
"COMMENT ON TRIGGER " + DBUtils.getQuotedIdentifier(command.getObject()) + " ON " + DBUtils.getQuotedIdentifier(command.getObject().getTable()) +
"COMMENT ON TRIGGER " + DBUtils.getQuotedIdentifier(command.getObject()) + " ON " + command.getObject().getTable().getFullyQualifiedName(DBPEvaluationContext.DDL) +
" IS " + SQLUtils.quoteString(command.getObject(), command.getObject().getDescription())));
}
}
......
......@@ -280,7 +280,7 @@ public class PostgreTrigger implements DBSTrigger, DBPQualifiedObject, PostgreOb
if (!CommonUtils.isEmpty(getDescription()) && CommonUtils.getOption(options, PostgreConstants.OPTION_DDL_SHOW_COLUMN_COMMENTS)) {
ddl.append("\n").append("\nCOMMENT ON TRIGGER ").append(DBUtils.getQuotedIdentifier(this))
.append(" ON ").append(DBUtils.getQuotedIdentifier(getTable()))
.append(" ON ").append(getTable().getFullyQualifiedName(DBPEvaluationContext.DDL))
.append(" IS ")
.append(SQLUtils.quoteString(this, getDescription())).append(";");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册