mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Revert "Convert *GetDatum() and DatumGet*() macros to inline functions"
This reverts commit 595836e99b
.
It has problems when USE_FLOAT8_BYVAL is off.
This commit is contained in:
@@ -62,18 +62,8 @@ typedef char GinTernaryValue;
|
||||
#define GIN_MAYBE 2 /* don't know if item is present / don't know
|
||||
* if matches */
|
||||
|
||||
static inline GinTernaryValue
|
||||
DatumGetGinTernaryValue(Datum X)
|
||||
{
|
||||
return (GinTernaryValue) X;
|
||||
}
|
||||
|
||||
static inline Datum
|
||||
GinTernaryValueGetDatum(GinTernaryValue X)
|
||||
{
|
||||
return (Datum) X;
|
||||
}
|
||||
|
||||
#define DatumGetGinTernaryValue(X) ((GinTernaryValue)(X))
|
||||
#define GinTernaryValueGetDatum(X) ((Datum)(X))
|
||||
#define PG_RETURN_GIN_TERNARY_VALUE(x) return GinTernaryValueGetDatum(x)
|
||||
|
||||
/* GUC parameters */
|
||||
|
Reference in New Issue
Block a user