]> granicus.if.org Git - postgresql/commitdiff
Fix a couple minor typos
authorStephen Frost <sfrost@snowman.net>
Fri, 20 Apr 2018 23:04:54 +0000 (19:04 -0400)
committerStephen Frost <sfrost@snowman.net>
Fri, 20 Apr 2018 23:04:54 +0000 (19:04 -0400)
In commit f0e4475, 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.

src/backend/catalog/objectaddress.c
src/backend/commands/typecmds.c

index 3cbee108c38c002ad755649d7efe95d179931979..cd96501cbb5dc4b124c15fbad968cbf984cca2a1 100644 (file)
@@ -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.
         */
        switch (type)
index 7746d1825894b102a1056c498cbefcece1c6986a..175ecc8b484fa42581bfa38b911b8085dd832ce7 100644 (file)
@@ -1990,7 +1990,7 @@ findRangeSubOpclass(List *opcname, Oid subtype)
                opcid = GetDefaultOpClass(subtype, BTREE_AM_OID);
                if (!OidIsValid(opcid))
                {
-                       /* We spell the error message identically to GetIndexOpClass */
+                       /* We spell the error message identically to ResolveOpClass */
                        ereport(ERROR,
                                        (errcode(ERRCODE_UNDEFINED_OBJECT),
                                         errmsg("data type %s has no default operator class for access method \"%s\"",