We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31e121d commit 7d12693Copy full SHA for 7d12693
src/include/utils/date.h
@@ -42,14 +42,14 @@ typedef struct
42
#define DATE_IS_NOEND(j) ((j) == DATEVAL_NOEND)
43
#define DATE_NOT_FINITE(j) (DATE_IS_NOBEGIN(j) || DATE_IS_NOEND(j))
44
45
+#define MAX_TIME_PRECISION 6
46
+
47
/*
48
* Macros for fmgr-callable functions.
49
*
50
* For TimeADT, we make use of the same support routines as for int64.
51
* Therefore TimeADT is pass-by-reference if and only if int64 is!
52
*/
-#define MAX_TIME_PRECISION 6
-
53
#define DatumGetDateADT(X) ((DateADT) DatumGetInt32(X))
54
#define DatumGetTimeADT(X) ((TimeADT) DatumGetInt64(X))
55
#define DatumGetTimeTzADTP(X) ((TimeTzADT *) DatumGetPointer(X))
0 commit comments