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

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Daniel Schuchardt <daniel_schuchardt(at)web(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: (No) Autocast in 8.4 with operators "=" and "LIKE"
Date: 2009-07-13 15:54:28
Message-ID: 20090713155428.GE4930@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2009-07-13 16:16:59 Predicate migration on complex self joins
Previous Message Kevin Grittner 2009-07-13 15:34:09 Re: Upgrading our minimum required flex version for 8.5