aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/catalog/objectaddress.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/backend/catalog/objectaddress.c b/src/backend/catalog/objectaddress.c
index e60e8e84bc1..8ccc171d03a 100644
--- a/src/backend/catalog/objectaddress.c
+++ b/src/backend/catalog/objectaddress.c
@@ -1578,7 +1578,7 @@ get_object_address_opf_member(ObjectType objtype,
ObjectAddress address;
ListCell *cell;
List *copy;
- char *typenames[2];
+ TypeName *typenames[2];
Oid typeoids[2];
int membernum;
int i;
@@ -1600,7 +1600,7 @@ get_object_address_opf_member(ObjectType objtype,
{
ObjectAddress typaddr;
- typenames[i] = strVal(lfirst(cell));
+ typenames[i] = (TypeName *) lfirst(cell);
typaddr = get_object_address_type(OBJECT_TYPE, cell, missing_ok);
typeoids[i] = typaddr.objectId;
if (++i >= 2)
@@ -1627,7 +1627,9 @@ get_object_address_opf_member(ObjectType objtype,
ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_OBJECT),
errmsg("operator %d (%s, %s) of %s does not exist",
- membernum, typenames[0], typenames[1],
+ membernum,
+ TypeNameToString(typenames[0]),
+ TypeNameToString(typenames[1]),
getObjectDescription(&famaddr))));
}
else
@@ -1656,7 +1658,9 @@ get_object_address_opf_member(ObjectType objtype,
ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_OBJECT),
errmsg("function %d (%s, %s) of %s does not exist",
- membernum, typenames[0], typenames[1],
+ membernum,
+ TypeNameToString(typenames[0]),
+ TypeNameToString(typenames[1]),
getObjectDescription(&famaddr))));
}
else
@@ -1993,7 +1997,7 @@ pg_get_object_address(PG_FUNCTION_ARGS)
}
/*
- * get_object_name is pretty sensitive to the length its input lists;
+ * get_object_address is pretty sensitive to the length its input lists;
* check that they're what it wants.
*/
switch (type)