Re: position('' in '') returns 1 instead of 0

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: position('' in '') returns 1 instead of 0
Дата
Msg-id 3ADEE62B.3D5BED97@alumni.caltech.edu
обсуждение исходный текст
Ответ на position('' in '') returns 1 instead of 0  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
> Hmm where is locate() changed to position() ?
> ISTM neither psqlodbc driver nor pg backend changes the
> function call locate() to position(.. in ..).

There is a mapping table in the driver of ODBC function calls to
PostgreSQL function calls. In this case, locate() is transformed into
strpos(), which is probably the underlying function implementing
position() also.

Terry, any word on locate() vs position() specs?

                         - Thomas

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

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Re: position('' in '') returns 1 instead of 0
Следующее
От: VASQUEZ_JASON@LILLY.COM
Дата:
Сообщение: startup scripts don't function properly