| От | Tom Lane |
|---|---|
| Тема | Re: 8.1 substring bug? |
| Дата | |
| Msg-id | 20154.1131731053@sss.pgh.pa.us обсуждение |
| Ответ на | Re: 8.1 substring bug? (Stephan Szabo <sszabo@megazone.bigpanda.com>) |
| Список | pgsql-hackers |
Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> On Fri, 11 Nov 2005, Tom Lane wrote:
>> I was toying with the idea of making it translate instead to
>>
>> pg_catalog.substring(foo, 1, (bar)::int4)
>>
>> since AFAICS there isn't any other reasonable mapping once you have
>> committed to having the "1" in there. This does not solve the general
>> problem, but it'd address the particular case anyway ...
> And, it's fairly reasonable to assume at least right now that any
> reasonable string offset or length fits in an int4.
If we thought differently we'd be changing the substring function,
and we could surely change the translation at the same time.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера