Re: 8.3beta bug or feature? - Mailing list pgsql-general

From Erik Jones
Subject Re: 8.3beta bug or feature?
Date
Msg-id B2C55F28-B72A-46A9-A724-5C1611125961@myemma.com
Whole thread Raw
In response to 8.3beta bug or feature?  (marcelo Cortez <jmdc_marcelo@yahoo.com.ar>)
List pgsql-general
On Jan 10, 2008, at 10:47 AM, marcelo Cortez wrote:

> folks
>
>  the follow queries work in postgres 8.2 but
>  in  8.3beta don't work
>
>
> SELECT c.* FROM c WHERE  c.numero LIKE '1%';
>
> i think automatic conversion of  numeber to text is
> the problem , in 8.3beta don't work
> numero field is  integer type
> any ideas?


Read the release notes :)  Implicit casts from non-text types to text
have been removed.  The easiest solution is to use an explicit cast:

SELECT c.* FROM c WHERE c.numero::text LIKE '1%';

I can definitely see this being an 8.3 faq.

Erik Jones

DBA | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com




pgsql-general by date:

Previous
From: Sim Zacks
Date:
Subject: Re: 8.2.4 serious slowdown
Next
From: Alvaro Herrera
Date:
Subject: Re: 8.3beta bug or feature?