]> granicus.if.org Git - postgresql/commitdiff
From: Darren King <darrenk@insightdist.com>
authorMarc G. Fournier <scrappy@hub.org>
Fri, 27 Feb 1998 19:44:51 +0000 (19:44 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Fri, 27 Feb 1998 19:44:51 +0000 (19:44 +0000)
Two incorrect printf formats in parser/parse_type.c.  Prolly done
by me a long time ago when I cleaned up int's and Oid's...

Format flag is really just %u, not %ud.  Harmless, but results in
"type id lookup of 25d failed" instead of only "...25 failed"

src/backend/parser/parse_type.c

index 97c080ca24276daa1e41d8b22c70b0f2cd57505a..9019c621226fa1d257c7d50c3bd9719ab10b26a1 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.7 1998/02/26 04:33:36 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.8 1998/02/27 19:44:51 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -44,7 +44,7 @@ typeidTypeName(Oid id)
        if (!(tup = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(id),
                                                                        0, 0, 0)))
        {
-               elog(ERROR, "type id lookup of %ud failed", id);
+               elog(ERROR, "type id lookup of %u failed", id);
                return (NULL);
        }
        typetuple = (TypeTupleForm) GETSTRUCT(tup);
@@ -60,7 +60,7 @@ typeidType(Oid id)
        if (!(tup = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(id),
                                                                        0, 0, 0)))
        {
-               elog(ERROR, "type id lookup of %ud failed", id);
+               elog(ERROR, "type id lookup of %u failed", id);
                return (NULL);
        }
        return ((Type) tup);