mirror of
https://github.com/postgres/postgres.git
synced 2025-12-15 02:22:24 +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:
@@ -47,17 +47,8 @@ typedef enum
|
||||
/* struct PgXmlErrorContext is private to xml.c */
|
||||
typedef struct PgXmlErrorContext PgXmlErrorContext;
|
||||
|
||||
static inline xmltype *
|
||||
DatumGetXmlP(Datum X)
|
||||
{
|
||||
return (xmltype *) PG_DETOAST_DATUM(X);
|
||||
}
|
||||
|
||||
static inline Datum
|
||||
XmlPGetDatum(const xmltype *X)
|
||||
{
|
||||
return PointerGetDatum(X);
|
||||
}
|
||||
#define DatumGetXmlP(X) ((xmltype *) PG_DETOAST_DATUM(X))
|
||||
#define XmlPGetDatum(X) PointerGetDatum(X)
|
||||
|
||||
#define PG_GETARG_XML_P(n) DatumGetXmlP(PG_GETARG_DATUM(n))
|
||||
#define PG_RETURN_XML_P(x) PG_RETURN_POINTER(x)
|
||||
|
||||
Reference in New Issue
Block a user