Re: FM format modifier does not remove leading zero from year
В списке pgsql-general по дате отправления:
| От | Guy Rouillier |
|---|---|
| Тема | Re: FM format modifier does not remove leading zero from year |
| Дата | |
| Msg-id | 4B456883.50301@burntmail.com обсуждение исходный текст |
| Ответ на | Re: FM format modifier does not remove leading zero from year (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On 1/6/2010 3:29 PM, Tom Lane wrote: > Guy Rouillier<guyr-ml1@burntmail.com> writes: >> Oracle states clearly in the SQL Reference manual: > >> "A modifier can appear in a format model more than once. In such a case, >> each subsequent occurrence toggles the effects of the modifier." > > *Toggles* the effect of the modifier? Egad, what drunken idiot chose > that specification? Eh, tomato, tomahto. If you assume that someone will strip leading zeroes consistently, the Oracle approach makes sense. That would be a reasonable assumption to make; why would I strip the zero off the month but leave it on the day? So, in the unusual case that you want to do such a thing, you are asked to use a second occurrence of FM to turn zero suppression back off. -- Guy Rouillier
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера