1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03:00

Fix improper quoting of format_type_be() output.

Per our message style guidelines, error messages incorporating the
results of format_type_be() and its siblings should not add quotes
around those results, because those functions already add quotes
at need.  Fix a few places that hadn't gotten that memo.
This commit is contained in:
Tom Lane
2017-05-29 21:48:26 -04:00
parent 68cff231e3
commit d5cb3bab56
4 changed files with 6 additions and 6 deletions

View File

@@ -3162,7 +3162,7 @@ RenameType(RenameStmt *stmt)
if (stmt->renameType == OBJECT_DOMAIN && typTup->typtype != TYPTYPE_DOMAIN)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("\"%s\" is not a domain",
errmsg("%s is not a domain",
format_type_be(typeOid))));
/*