mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
I have this annoying habit (among others) of putting
%ud in a printf format strings instead of just %u. There were three occurances of this in catalog_utils.c, two in parser.c and one in rewriteSupport.c in the oid patch that I submitted and was applied. They won't crash anything, but the error messages will have a 'd' after the Oid. Annoying, but none are db-threatening. Sorry about that folks...I'll be more careful in the future... Darren King
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.13 1996/12/11 03:17:49 bryanh Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.14 1996/12/26 17:47:41 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1397,7 +1397,7 @@ typeid_get_retinfunc(Oid type_id)
|
||||
0,0,0);
|
||||
if ( !HeapTupleIsValid ( typeTuple ))
|
||||
elog(WARN,
|
||||
"typeid_get_retinfunc: Invalid type - oid = %ud",
|
||||
"typeid_get_retinfunc: Invalid type - oid = %u",
|
||||
type_id);
|
||||
|
||||
type = (TypeTupleForm) GETSTRUCT(typeTuple);
|
||||
@ -1415,7 +1415,7 @@ typeid_get_relid(Oid type_id)
|
||||
ObjectIdGetDatum(type_id),
|
||||
0,0,0);
|
||||
if ( !HeapTupleIsValid ( typeTuple ))
|
||||
elog(WARN, "typeid_get_relid: Invalid type - oid = %ud ", type_id);
|
||||
elog(WARN, "typeid_get_relid: Invalid type - oid = %u ", type_id);
|
||||
|
||||
type = (TypeTupleForm) GETSTRUCT(typeTuple);
|
||||
infunc = type->typrelid;
|
||||
@ -1441,7 +1441,7 @@ get_typelem(Oid type_id)
|
||||
if (!(typeTuple = SearchSysCacheTuple(TYPOID,
|
||||
ObjectIdGetDatum(type_id),
|
||||
0,0,0))) {
|
||||
elog (WARN , "type id lookup of %ud failed", type_id);
|
||||
elog (WARN , "type id lookup of %u failed", type_id);
|
||||
}
|
||||
type = (TypeTupleForm) GETSTRUCT(typeTuple);
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.15 1996/12/07 04:38:11 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.16 1996/12/26 17:47:42 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -357,7 +357,7 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
|
||||
const_string = (char *) textout((struct varlena *)const_string);
|
||||
break;
|
||||
default:
|
||||
elog(WARN,"unknown type %ud ",exprType);
|
||||
elog(WARN,"unknown type %u ",exprType);
|
||||
}
|
||||
|
||||
if (!exprType) {
|
||||
@ -405,7 +405,7 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
|
||||
0 /*was omitted*/,
|
||||
0 /* not a set */);
|
||||
/*
|
||||
printf("adt %s : %ud %d %d\n",CString(expr),typeid(tp) ,
|
||||
printf("adt %s : %u %d %d\n",CString(expr),typeid(tp) ,
|
||||
len,cp);
|
||||
*/
|
||||
if (string_palloced) pfree(const_string);
|
||||
|
Reference in New Issue
Block a user