pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14605: round trip of day of week doesn't work
2+ messages / 2 participants
[nested] [flat]
* BUG #14605: round trip of day of week doesn't work
@ 2017-03-29 21:36 shaunc@factfiber.com
0 siblings, 1 reply; 2+ messages in thread
From: shaunc@factfiber.com @ 2017-03-29 21:36 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14605
Logged by: Shaun Cutts
Email address: shaunc@factfiber.com
PostgreSQL version: 9.6.0
Operating system: MAC OS
Description:
select extract(dow from to_date('Monday', 'Day'));
date_part
-----------
6
(1 row)
# select extract(dow from to_date('Sunday', 'Day'));
date_part
-----------
6
(1 row)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14605: round trip of day of week doesn't work
@ 2017-03-30 08:10 Francisco Olarte <folarte@peoplecall.com>
parent: shaunc@factfiber.com
0 siblings, 0 replies; 2+ messages in thread
From: Francisco Olarte @ 2017-03-30 08:10 UTC (permalink / raw)
To: shaunc@factfiber.com; +Cc: pgsql-bugs
On Wed, Mar 29, 2017 at 11:36 PM, <shaunc@factfiber.com> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 14605
> Logged by: Shaun Cutts
> Email address: shaunc@factfiber.com
> PostgreSQL version: 9.6.0
> Operating system: MAC OS
> Description:
Seems someone hasn't been doing his homework.
> select extract(dow from to_date('Monday', 'Day'));
> date_part
> -----------
> 6
> (1 row)
> # select extract(dow from to_date('Sunday', 'Day'));
> date_part
> -----------
> 6
> (1 row)
Have you thought on trying and pasting in your report the results of
select to_date('Monday', 'Day');
select to_date('Sunday', 'Day');
Because at least in my machine:
# select version(), to_date('Monday','day') as Monday,
to_date('Sunday','day') as Sunday;
-[ RECORD 1 ]-------
version | PostgreSQL 9.3.10 ....snipped...
monday | 0001-01-01 BC
sunday | 0001-01-01 BC
Due to the version mismatch I cannot state 'not a bug', but me ( and
possibly other more knoledgeable people ) could consider looking at it
further if you had tested the parts. Divide et impera.
Francisco Olarte.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-03-30 08:10 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29 21:36 BUG #14605: round trip of day of week doesn't work shaunc@factfiber.com
2017-03-30 08:10 ` Francisco Olarte <folarte@peoplecall.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox