mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Fix missing code for HAVE_INT64_TIMESTAMP.
This commit is contained in:
parent
b700a672fe
commit
3abbce39d5
@ -247,6 +247,13 @@ extern int day_tab[2][13];
|
||||
|| (((y) == UTIME_MAXYEAR) && (((m) < UTIME_MAXMONTH) \
|
||||
|| (((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
|
||||
#define DT_NOBEGIN (-HUGE_VAL)
|
||||
#define DT_NOEND (HUGE_VAL)
|
||||
@ -255,6 +262,8 @@ extern int day_tab[2][13];
|
||||
#define DT_NOEND (DBL_MAX)
|
||||
#endif
|
||||
|
||||
#endif /* HAVE_INT64_TIMESTAMP */
|
||||
|
||||
#define TIMESTAMP_NOBEGIN(j) do {j = DT_NOBEGIN;} while (0)
|
||||
#define TIMESTAMP_NOEND(j) do {j = DT_NOEND;} while (0)
|
||||
#define TIMESTAMP_IS_NOBEGIN(j) ((j) == DT_NOBEGIN)
|
||||
|
Loading…
Reference in New Issue
Block a user