diff options
Diffstat (limited to 'src/backend/utils/adt/formatting.c')
-rw-r--r-- | src/backend/utils/adt/formatting.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index d9422587f4f..5a901f45f2e 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * formatting.c * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.49 2002/01/04 15:49:42 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.50 2002/02/18 14:24:35 momjian Exp $ * * * Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group @@ -434,17 +434,6 @@ typedef struct TmToChar tmtcTzn(_X) = NULL; \ } while(0) -/* ---------- - * Utils - * ---------- - */ -#ifndef MIN -#define MIN(a,b) (((a)<(b)) ? (a) : (b)) -#endif -#ifndef MAX -#define MAX(a,b) (((a)>(b)) ? (a) : (b)) -#endif - /***************************************************************************** * KeyWords definition & action *****************************************************************************/ @@ -4333,7 +4322,7 @@ numeric_to_number(PG_FUNCTION_ARGS) VARSIZE(value) - VARHDRSZ, 0, FROM_CHAR); scale = Num.post; - precision = MAX(0, Num.pre) + scale; + precision = Max(0, Num.pre) + scale; if (flag) pfree(format); |