Re: BUG #1671: Long interval string representation rejected
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #1671: Long interval string representation rejected |
| Дата | |
| Msg-id | 28185.1116473069@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: BUG #1671: Long interval string representation rejected (Neil Conway <neilc@samurai.com>) |
| Ответы |
Re: BUG #1671: Long interval string representation rejected
|
| Список | pgsql-bugs |
Neil Conway <neilc@samurai.com> writes:
> Tom Lane wrote:
>> There are a lot of fixed-size local buffers in that code. The ones
>> used in output routines seem defensible since the string to be generated
>> is predictable. The ones that are used for processing input are likely
>> wrong.
> I'm not sure offhand what the upper bounds on legal input for each of
> the datetime types is.
Well, if you allow for whitespace between tokens then it's immediately
clear that there is no fixed upper bound. Perhaps it would work to
downcase just one token at a time, so that the max buffer length equals
the max acceptable token?
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера