| От | Scott Bailey |
|---|---|
| Тема | Re: to_timestamp() and quarters |
| Дата | |
| Msg-id | 4B8D4690.202@comcast.net обсуждение исходный текст |
| Ответ на | Re: to_timestamp() and quarters (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
Tom Lane wrote: > Asher Hoskins <asher@piceur.co.uk> writes: >> I can't seem to get to_timestamp() or to_date() to work with quarters, > > The source code says > > * We ignore Q when converting to date because it is not > * normative. > * > * We still parse the source string for an integer, but it > * isn't stored anywhere in 'out'. > > That might be a reasonable position, but it seems like it'd be better to > throw an error than silently do nothing. Anybody know what Oracle does > with this? +1 for throwing error. Oracle 10g throws ORA-01820: format code cannot appear in date input format. Scott
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера