Commit 3abbce39 authored by Tom Lane's avatar Tom Lane

Fix missing code for HAVE_INT64_TIMESTAMP.

parent b700a672
...@@ -247,14 +247,23 @@ extern int day_tab[2][13]; ...@@ -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 HAVE_INT64_TIMESTAMP
#define DT_NOBEGIN (-INT64CONST(0x7fffffffffffffff) - 1)
#define DT_NOEND (INT64CONST(0x7fffffffffffffff))
#else
#ifdef HUGE_VAL #ifdef HUGE_VAL
#define DT_NOBEGIN (-HUGE_VAL) #define DT_NOBEGIN (-HUGE_VAL)
#define DT_NOEND (HUGE_VAL) #define DT_NOEND (HUGE_VAL)
#else #else
#define DT_NOBEGIN (-DBL_MAX) #define DT_NOBEGIN (-DBL_MAX)
#define DT_NOEND (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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment