summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorBruce Momjian2012-09-04 02:52:34 +0000
committerBruce Momjian2012-09-04 02:52:44 +0000
commit015722fb364416b29fb1bb2c10631feb67ad61cd (patch)
treedfeaba3901788d298d2b122f3d2aa6eb18fa8071 /src/include/utils
parente442b0f0c6fd26738bafdeb5222511b586dfe4b9 (diff)
Fix to_date() and to_timestamp() to allow specification of the day of
the week via ISO or Gregorian designations. The fix is to store the day-of-week consistently as 1-7, Sunday = 1. Fixes bug reported by Marc Munro
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/timestamp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h
index 665e969498c..e7cdb417e59 100644
--- a/src/include/utils/timestamp.h
+++ b/src/include/utils/timestamp.h
@@ -236,7 +236,7 @@ extern int timestamp_cmp_internal(Timestamp dt1, Timestamp dt2);
extern int isoweek2j(int year, int week);
extern void isoweek2date(int woy, int *year, int *mon, int *mday);
-extern void isoweekdate2date(int isoweek, int isowday, int *year, int *mon, int *mday);
+extern void isoweekdate2date(int isoweek, int wday, int *year, int *mon, int *mday);
extern int date2isoweek(int year, int mon, int mday);
extern int date2isoyear(int year, int mon, int mday);
extern int date2isoyearday(int year, int mon, int mday);