pgsql: Fix to_date() and to_timestamp() to allow specification of the d
pgsql: Fix to_date() and to_timestamp() to allow specification of the d
От:
Bruce Momjian <bruce@momjian.us>
Дата:
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 Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/015722fb364416b29fb1bb2c10631feb67ad61cd Modified Files -------------- src/backend/utils/adt/formatting.c | 10 +++++++--- src/backend/utils/adt/timestamp.c | 12 ++++++++---- src/include/utils/timestamp.h | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-)