pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <sr_krishna@aol.com>
To: danny_abraham@bmc.com
To: pgsql-general@postgresql.org
Subject: Re: date function bug
Date: Wed, 23 Oct 2019 14:28:15 +0000 (UTC)
Message-ID: <1866587871.3881806.1571840895790@mail.yahoo.com> (raw)
In-Reply-To: <0bac35bcde6747e485bc7468c4080798@phx-exmbprd-01.adprod.bmc.com>
References: <0bac35bcde6747e485bc7468c4080798@phx-exmbprd-01.adprod.bmc.com>

> ctrlmdb=> select to_date('2018100X','YYYYMMDD');
> to_date
------------
>2018-10-01
>(1 row)

I am able to reproduce this in 11.5 It seems PG can take a single digit for Day too.
select to_date('2018109','YYYYMMDD') produces 2018-10-09.

view thread (11+ messages)  latest in thread

Message-ID: <1866587871.3881806.1571840895790@mail.yahoo.com>
Permalink:  ../1866587871.3881806.1571840895790@mail.yahoo.com/
Also on:    postgresql.org/message-id/1866587871.3881806.1571840895790@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sr_krishna@aol.com, danny_abraham@bmc.com
  Subject: Re: date function bug
  In-Reply-To: <1866587871.3881806.1571840895790@mail.yahoo.com>
  References: <0bac35bcde6747e485bc7468c4080798@phx-exmbprd-01.adprod.bmc.com> <1866587871.3881806.1571840895790@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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