Commit a0fefbcb authored by Stephen Frost's avatar Stephen Frost

Fix a couple minor typos

In commit f0e44751, GetIndexOpClass was renamed to ResolveOpClass, but
the comment in typecmds.c didn't get the memo.

In objectaddress.c, missing 'of' in a comment.

Both noticed by Vik Fearing, patch is mine though.
parent 676858bc
...@@ -2062,7 +2062,7 @@ pg_get_object_address(PG_FUNCTION_ARGS) ...@@ -2062,7 +2062,7 @@ pg_get_object_address(PG_FUNCTION_ARGS)
} }
/* /*
* get_object_address is pretty sensitive to the length its input lists; * get_object_address is pretty sensitive to the length of its input lists;
* check that they're what it wants. * check that they're what it wants.
*/ */
switch (type) switch (type)
......
...@@ -1990,7 +1990,7 @@ findRangeSubOpclass(List *opcname, Oid subtype) ...@@ -1990,7 +1990,7 @@ findRangeSubOpclass(List *opcname, Oid subtype)
opcid = GetDefaultOpClass(subtype, BTREE_AM_OID); opcid = GetDefaultOpClass(subtype, BTREE_AM_OID);
if (!OidIsValid(opcid)) if (!OidIsValid(opcid))
{ {
/* We spell the error message identically to GetIndexOpClass */ /* We spell the error message identically to ResolveOpClass */
ereport(ERROR, ereport(ERROR,
(errcode(ERRCODE_UNDEFINED_OBJECT), (errcode(ERRCODE_UNDEFINED_OBJECT),
errmsg("data type %s has no default operator class for access method \"%s\"", errmsg("data type %s has no default operator class for access method \"%s\"",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment