git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31e121d)
Move a definition inside a header file
2022年8月19日 09:20:09 +0000 (11:20 +0200)
2022年8月19日 09:20:09 +0000 (11:20 +0200)
Over time, this has ended up in a slightly inappropriate place
relative to the comments around it.


diff --git a/src/include/utils/date.h b/src/include/utils/date.h
index 91ae24254dfc45a537a9167068082a3b2a08bd4a..3991da41f0feec865690750fd1e74282d5f9b381 100644 (file)
--- a/src/include/utils/date.h
+++ b/src/include/utils/date.h
@@ -42,14 +42,14 @@ typedef struct
#define DATE_IS_NOEND(j) ((j) == DATEVAL_NOEND)
#define DATE_NOT_FINITE(j) (DATE_IS_NOBEGIN(j) || DATE_IS_NOEND(j))
+#define MAX_TIME_PRECISION 6
+
/*
* Macros for fmgr-callable functions.
*
* For TimeADT, we make use of the same support routines as for int64.
* Therefore TimeADT is pass-by-reference if and only if int64 is!
*/
-#define MAX_TIME_PRECISION 6
-
#define DatumGetDateADT(X) ((DateADT) DatumGetInt32(X))
#define DatumGetTimeADT(X) ((TimeADT) DatumGetInt64(X))
#define DatumGetTimeTzADTP(X) ((TimeTzADT *) DatumGetPointer(X))
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /