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

Lines changed: 2 additions & 2 deletions
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)
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