1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-17 17:02:08 +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:
Bruce Momjian
1996-12-26 17:47:42 +00:00
parent c5aaba2c34
commit 28a08fd4ac
3 changed files with 33 additions and 33 deletions

View File

@ -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);