]> granicus.if.org Git - postgresql/commitdiff
Remove quotes around format_type_be() output
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 24 Jan 2012 19:49:27 +0000 (21:49 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 24 Jan 2012 19:49:27 +0000 (21:49 +0200)
format_type_be() takes care of any needed quoting itself.

src/backend/catalog/pg_constraint.c

index d993170eb1fb8c8c29f285b2b8340828aba6f8d8..0bad4d99cb42f5018578d124856605f2116992a0 100644 (file)
@@ -653,7 +653,7 @@ RenameConstraintById(Oid conId, const char *newname)
                                                         newname))
                ereport(ERROR,
                                (errcode(ERRCODE_DUPLICATE_OBJECT),
-                                errmsg("constraint \"%s\" for domain \"%s\" already exists",
+                                errmsg("constraint \"%s\" for domain %s already exists",
                                                newname, format_type_be(con->contypid))));
 
        /* OK, do the rename --- tuple is a copy, so OK to scribble on it */