Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7d12693

Browse files
committed
Move a definition inside a header file
Over time, this has ended up in a slightly inappropriate place relative to the comments around it.
1 parent 31e121d commit 7d12693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/utils/date.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ typedef struct
4242
#define DATE_IS_NOEND(j) ((j) == DATEVAL_NOEND)
4343
#define DATE_NOT_FINITE(j) (DATE_IS_NOBEGIN(j) || DATE_IS_NOEND(j))
4444

45+
#define MAX_TIME_PRECISION 6
46+
4547
/*
4648
* Macros for fmgr-callable functions.
4749
*
4850
* For TimeADT, we make use of the same support routines as for int64.
4951
* Therefore TimeADT is pass-by-reference if and only if int64 is!
5052
*/
51-
#define MAX_TIME_PRECISION 6
52-
5353
#define DatumGetDateADT(X) ((DateADT) DatumGetInt32(X))
5454
#define DatumGetTimeADT(X) ((TimeADT) DatumGetInt64(X))
5555
#define DatumGetTimeTzADTP(X) ((TimeTzADT *) DatumGetPointer(X))

0 commit comments

Comments
 (0)