| From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Cc: | 66666666nikita(at)gmail(dot)com |
| Subject: | BUG #17155: Casting to type date |
| Date: | 2021-08-20 11:19:04 |
| Message-ID: | 17155-a946f3b2c515d07f@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 17155
Logged by: Никита Шумилов
Email address: 66666666nikita(at)gmail(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2021-08-20 13:36:16 | Re: BUG #17155: Casting to type date |
| Previous Message | Daniel Gustafsson | 2021-08-20 10:49:57 | Re: BUG #17148: About --no-strict-names option and --quiet option of pg_amcheck command |