Re: Bug in ILIKE?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in ILIKE?
Дата
Msg-id 7006.1222399050@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug in ILIKE?  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Bug in ILIKE?
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> The docs actually don't state what are the semantics of escape followed 
> by something that is not escape or a metachar. Does the spec say 
> anything about that?

The spec says it's an error, per the SQL92 excerpt I quoted in the
previous thread.  (SQL99 says about the same with more notation;
I didn't bother looking in the later specs.)

I find that position too restrictive, mainly because of this
consideration: suppose some future version of the spec invents
additional metacharacters.  To be concrete, suppose ? means
something special in SQL2010.  Now how do you make a pattern that
works in both older and newer servers?  \? means literal ? to the
newer server, but if it throws an error on the older, you're stuck.

So I'm for the definition that escape-anything means exactly anything,
without any special treatment that it would otherwise have.  And in
the case of ILIKE it seems like "no special treatment" should mean
"case insensitive match".
        regards, tom lane


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

Предыдущее
От: "Robert Haas"
Дата:
Сообщение: Re: Updates of SE-PostgreSQL 8.4devel patches
Следующее
От: KaiGai Kohei
Дата:
Сообщение: Re: Updates of SE-PostgreSQL 8.4devel patches