Re: MySQL search query is not executing in Postgres DB
| От | Tom Lane |
|---|---|
| Тема | Re: MySQL search query is not executing in Postgres DB |
| Дата | |
| Msg-id | 26301.1329492455@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: MySQL search query is not executing in Postgres DB (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: MySQL search query is not executing in Postgres DB
|
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> I understand why it's a bad idea to rely on integer = text doing
> anything sane - is that text equality or numeric equality?
> And in theory the same issue could exist here if there were another
> meaning for LIKE. But there isn't.
Really? LIKE is just a different spelling for operator ~~, and there is
nothing stopping people from defining more operators named that, not to
mention that there are already four of them in core PG. In particular
the bytea ~~ bytea version is explicitly intended to provide a LIKE
implementation for non-text types. I see some operators named ~~ in
contrib as well.
regards, tom lane
В списке pgsql-hackers по дате отправления: