mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Fix missing code for HAVE_INT64_TIMESTAMP.
This commit is contained in:
@ -247,14 +247,23 @@ extern int day_tab[2][13];
|
|||||||
|| (((y) == UTIME_MAXYEAR) && (((m) < UTIME_MAXMONTH) \
|
|| (((y) == UTIME_MAXYEAR) && (((m) < UTIME_MAXMONTH) \
|
||||||
|| (((m) == UTIME_MAXMONTH) && ((d) <= UTIME_MAXDAY))))))
|
|| (((m) == UTIME_MAXMONTH) && ((d) <= UTIME_MAXDAY))))))
|
||||||
|
|
||||||
#ifdef HUGE_VAL
|
#ifdef HAVE_INT64_TIMESTAMP
|
||||||
#define DT_NOBEGIN (-HUGE_VAL)
|
|
||||||
#define DT_NOEND (HUGE_VAL)
|
#define DT_NOBEGIN (-INT64CONST(0x7fffffffffffffff) - 1)
|
||||||
|
#define DT_NOEND (INT64CONST(0x7fffffffffffffff))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define DT_NOBEGIN (-DBL_MAX)
|
|
||||||
#define DT_NOEND (DBL_MAX)
|
#ifdef HUGE_VAL
|
||||||
|
#define DT_NOBEGIN (-HUGE_VAL)
|
||||||
|
#define DT_NOEND (HUGE_VAL)
|
||||||
|
#else
|
||||||
|
#define DT_NOBEGIN (-DBL_MAX)
|
||||||
|
#define DT_NOEND (DBL_MAX)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* HAVE_INT64_TIMESTAMP */
|
||||||
|
|
||||||
#define TIMESTAMP_NOBEGIN(j) do {j = DT_NOBEGIN;} while (0)
|
#define TIMESTAMP_NOBEGIN(j) do {j = DT_NOBEGIN;} while (0)
|
||||||
#define TIMESTAMP_NOEND(j) do {j = DT_NOEND;} while (0)
|
#define TIMESTAMP_NOEND(j) do {j = DT_NOEND;} while (0)
|
||||||
#define TIMESTAMP_IS_NOBEGIN(j) ((j) == DT_NOBEGIN)
|
#define TIMESTAMP_IS_NOBEGIN(j) ((j) == DT_NOBEGIN)
|
||||||
|
Reference in New Issue
Block a user