Re: substring start position behavior

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: substring start position behavior
Дата
Msg-id Zefh_2-e9ILgmCjW@momjian.us
обсуждение исходный текст
Ответ на substring start position behavior  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On Tue, Mar  5, 2024 at 09:47:54PM -0500, dansonlinepresence@gmail.com wrote:
> Thanks for all that context and diff! The odd behavior is indeed in
> the SQL spec. At least I was convinced of that on postgres IRC by
> someone who seemed to have quoted from the spec. I don't think the
> feature ought to be hidden because it's odd.
> 
> If I may suggest some specificity to the wording here, I think "start
> values less than 1" would avoid confusion about whether 0 is
> nonpositive or not, and bring attention to the function being
> 1-indexed rather than 0-indexed.

Sure, updated patch attached.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.

Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: dansonlinepresence@gmail.com
Дата:
Сообщение: Re: substring start position behavior
Следующее
От: Tom Lane
Дата:
Сообщение: Re: substring start position behavior