| От | Tom Lane |
|---|---|
| Тема | Re: Inconsistency between TO_CHAR() and TO_NUMBER() |
| Дата | |
| Msg-id | 2768.1368454158@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Inconsistency between TO_CHAR() and TO_NUMBER() (Heikki Linnakangas <hlinnakangas@vmware.com>) |
| Ответы |
Re: Inconsistency between TO_CHAR() and TO_NUMBER()
|
| Список | pgsql-bugs |
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> Would it be possible to be lenient, and also accept . as the decimal
> separator, when there is no ambiguity? Ie. when . is not the thousands
> separator.
I originally coded it that way, but concluded that it was probably a
waste of code space. How many locales can you point to where neither
the decimal point nor thousands_sep is "."? It certainly wouldn't be
enough to noticeably reduce the potential pain from this change, so
I decided that it'd be better to keep the behavior straightforward
and as-documented.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера