Re: (No) Autocast in 8.4 with operators "=" and "LIKE"

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: (No) Autocast in 8.4 with operators "=" and "LIKE"
Дата
Msg-id 20090713155428.GE4930@alvh.no-ip.org
обсуждение исходный текст
Ответ на (No) Autocast in 8.4 with operators "=" and "LIKE"  (Daniel Schuchardt <daniel_schuchardt@web.de>)
Список pgsql-hackers
Daniel Schuchardt wrote:
> Is that is the wished behavoir?
>
> template1=# SELECT 1='1';
> ?column?
> ----------
> t
> (1 row)

Yes.  See also this:

alvherre=# select 1 = '1'::text;
ERROR:  operator does not exist: integer = text
LÍNEA 1: select 1 = '1'::text;                 ^
SUGERENCIA:  No operator matches the given name and argument type(s). You might need to add explicit type casts.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Upgrading our minimum required flex version for 8.5
Следующее
От: Simon Riggs
Дата:
Сообщение: Predicate migration on complex self joins