pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: 66666666nikita@gmail.com
Subject: BUG #17155: Casting to type date
Date: Fri, 20 Aug 2021 11:19:04 +0000
Message-ID: <17155-a946f3b2c515d07f@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17155
Logged by:          Никита Шумилов
Email address:      66666666nikita@gmail.com
PostgreSQL version: 12.8
Operating system:   Ubuntu
Description:        

In the previous version 12.6, the date cast is handled without errors, but
in version 12.8 this generates an error
SELECT '20.08.2021'::date

ERROR:  date/time field value out of range: "20.08.2021"
LINE 1: SELECT '20.08.2021'::date
               ^
HINT:  Perhaps you need a different "datestyle" setting.
SQL-состояние: 22008
Символ: 8

I know that you can use to_date ('20 .08.2021 ',' DD.MM.YYYY '), but this is
less convenient



view thread (2+ messages)  latest in thread

Message-ID: <17155-a946f3b2c515d07f@postgresql.org>
Permalink:  ../17155-a946f3b2c515d07f@postgresql.org/
Also on:    postgresql.org/message-id/17155-a946f3b2c515d07f@postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, 66666666nikita@gmail.com
  Subject: Re: BUG #17155: Casting to type date
  In-Reply-To: <17155-a946f3b2c515d07f@postgresql.org>

* 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