Re: psql can't subtract

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: psql can't subtract
Дата
Msg-id 4D8CBB64.1060408@archonet.com
обсуждение исходный текст
Ответ на psql can't subtract  (Rob Sargent <robjsargent@gmail.com>)
Ответы Re: psql can't subtract  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
On 25/03/11 15:29, Rob Sargent wrote:
> Running 9.0.3 (client and server)

> select distinct
> substring(
...
> position( 'xmlns=' in substring(xml_text,1,300)) + length('xmlns="'),
> 100))) -1
...
> gives
> ERROR: negative substring length not allowed.

If there is no match the initial position will be zero. Minus one will
give you a negative substring length.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: psql can't subtract
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: psql can't subtract