Re: bug in substring???

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: bug in substring???
Дата
Msg-id 40241EC5.7000003@joeconway.com
обсуждение исходный текст
Ответ на bug in substring???  ("scott.marlowe" <scott.marlowe@ihs.com>)
Ответы Re: bug in substring???  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-hackers
scott.marlowe wrote:
> gives me nothing.  Shouldn't a negative offset, or even 0 offset result in 
> an error or something here?  Or is there a special meaning to a negative 
> offset I'm not getting?

In varlena.c there is this comment:
 * text_substr() * Return a substring starting at the specified position. * - thomas 1997-12-31 * * Input: *    -
string*    - starting position (is one-based) *    - string length * * If the starting position is zero or less, then
returnfrom the start *  of the string adjusting the length to be consistent with the *  "negative start" per SQL92. If
thelength is less than zero, return *  the remaining string.
 

Joe




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

Предыдущее
От: Wade Klaver
Дата:
Сообщение: Make failed in HEAD with make -j
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Why has postmaster shutdown gotten so slow?