Skip to content

Commit 3abbce3

Browse files
committed
Fix missing code for HAVE_INT64_TIMESTAMP.
1 parent b700a67 commit 3abbce3

File tree

1 file changed

+13
-4
lines changed
  • src/interfaces/ecpg/pgtypeslib

1 file changed

+13
-4
lines changed

src/interfaces/ecpg/pgtypeslib/dt.h

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,23 @@ extern int day_tab[2][13];
247247
|| (((y) == UTIME_MAXYEAR) && (((m) < UTIME_MAXMONTH) \
248248
|| (((m) == UTIME_MAXMONTH) && ((d) <= UTIME_MAXDAY))))))
249249

250+
#ifdef HAVE_INT64_TIMESTAMP
251+
252+
#define DT_NOBEGIN (-INT64CONST(0x7fffffffffffffff) - 1)
253+
#define DT_NOEND (INT64CONST(0x7fffffffffffffff))
254+
255+
#else
256+
250257
#ifdef HUGE_VAL
251-
#define DT_NOBEGIN (-HUGE_VAL)
252-
#define DT_NOEND (HUGE_VAL)
258+
#define DT_NOBEGIN (-HUGE_VAL)
259+
#define DT_NOEND (HUGE_VAL)
253260
#else
254-
#define DT_NOBEGIN (-DBL_MAX)
255-
#define DT_NOEND (DBL_MAX)
261+
#define DT_NOBEGIN (-DBL_MAX)
262+
#define DT_NOEND (DBL_MAX)
256263
#endif
257264

265+
#endif /* HAVE_INT64_TIMESTAMP */
266+
258267
#define TIMESTAMP_NOBEGIN(j) do {j = DT_NOBEGIN;} while (0)
259268
#define TIMESTAMP_NOEND(j) do {j = DT_NOEND;} while (0)
260269
#define TIMESTAMP_IS_NOBEGIN(j) ((j) == DT_NOBEGIN)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy