Re: Getting error while trying to insert date with the format 'dd-month-yyyy' , 'day-mm-yyyy' etc..

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting error while trying to insert date with the format 'dd-month-yyyy' , 'day-mm-yyyy' etc..
Дата
Msg-id 212.1244643042@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Getting error while trying to insert date with the format 'dd-month-yyyy' , 'day-mm-yyyy' etc..  (Rushabh Lathia <rushabh.lathia@gmail.com>)
Ответы Re: Getting error while trying to insert date with the format 'dd-month-yyyy' , 'day-mm-yyyy' etc..  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Rushabh Lathia <rushabh.lathia@gmail.com> writes:
> Getting error while trying to insert date with the format 'dd-month-yyyy' ,
> 'day-mm-yyyy' (format which add the space in between the date ) etc..

1. Why are you bothering with the completely pointless to_char call at all?

2. It is not a bug that to_char is capable of emitting formats that
won't be read by the standard datetime input converter.  If you insist
on making a useless conversion to char and back, it's on your head to
choose a format setting that will work.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgindent run coming
Следующее
От: Andy Colson
Дата:
Сообщение: Re: Multicolumn index corruption on 8.4 beta 2