mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Remove MAX/MIN() macros, use c.h Max/Min() instead.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user