Re: Fix a Oracle-compatible instr function in thedocumentation

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: Fix a Oracle-compatible instr function in thedocumentation
Дата
Msg-id 20180101.003313.1524984593223228351.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Fix a Oracle-compatible instr function in the documentation  (Yugo Nagata <nagata@sraoss.co.jp>)
Ответы Re: Fix a Oracle-compatible instr function in the documentation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> The documentation of PL/pgSQL provides sample codes of Oracle-compatible
> instr functions. However, the behaviour is a little differet.
> Oracle's instr raises an error when the forth argument value is less than
> zero, but the sample code returns zero. This patch fixes this.

Your patch fixes only instr(string varchar, string_to_search varchar, beg_index integer).
However in the doc there is another instr(string varchar, string_to_search varchar, beg_index integer, occur_index
integer).

Shouldn't this be fixed as well?

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


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

Предыдущее
От: Arthur Zakirov
Дата:
Сообщение: Re: [PROPOSAL] Shared Ispell dictionaries
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: [HACKERS] Parallel tuplesort (for parallel B-Tree index creation)