| From: | Warren Turkal <turkal(at)google(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Cc: | turkal(at)google(dot)com |
| Subject: | [PATCH] Clean up date/time variable type selection |
| Date: | 2008-03-09 08:45:59 |
| Message-ID: | 12050523593097-git-send-email-turkal@google.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I have removed all instances of using HAVE_INT64_TIMESTAMP to determine the
type of a variable in files depending on timestamp.h.
---
src/backend/utils/adt/nabstime.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/src/backend/utils/adt/nabstime.c b/src/backend/utils/adt/nabstime.c
index 992f7ab..5a662f3 100644
--- a/src/backend/utils/adt/nabstime.c
+++ b/src/backend/utils/adt/nabstime.c
@@ -832,11 +832,7 @@ interval_reltime(PG_FUNCTION_ARGS)
month,
day;
-#ifdef HAVE_INT64_TIMESTAMP
- int64 span;
-#else
- double span;
-#endif
+ TimeOffset span;
year = interval->month / MONTHS_PER_YEAR;
month = interval->month % MONTHS_PER_YEAR;
--
1.5.2.5
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Meskes | 2008-03-09 11:03:38 | Re: timestamp datatype cleanup |
| Previous Message | Warren Turkal | 2008-03-09 08:45:58 | [PATCH] Add TimeOffset and DateOffset typedefs |