From: Darren King <darrenk@insightdist.com>
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"
This commit is contained in:
parent
9986d9a404
commit
794fedc735
|
@ -7,7 +7,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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),
|
if (!(tup = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(id),
|
||||||
0, 0, 0)))
|
0, 0, 0)))
|
||||||
{
|
{
|
||||||
elog(ERROR, "type id lookup of %ud failed", id);
|
elog(ERROR, "type id lookup of %u failed", id);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
typetuple = (TypeTupleForm) GETSTRUCT(tup);
|
typetuple = (TypeTupleForm) GETSTRUCT(tup);
|
||||||
|
@ -60,7 +60,7 @@ typeidType(Oid id)
|
||||||
if (!(tup = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(id),
|
if (!(tup = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(id),
|
||||||
0, 0, 0)))
|
0, 0, 0)))
|
||||||
{
|
{
|
||||||
elog(ERROR, "type id lookup of %ud failed", id);
|
elog(ERROR, "type id lookup of %u failed", id);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
return ((Type) tup);
|
return ((Type) tup);
|
||||||
|
|
Loading…
Reference in New Issue