Re: Error: Operator does not exist: "char"=integer - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Error: Operator does not exist: "char"=integer
Date
Msg-id 494A29AD.5000003@iol.ie
Whole thread Raw
In response to Error: Operator does not exist: "char"=integer  (novnov <novnovice@gmail.com>)
Responses Re: Error: Operator does not exist: "char"=integer
List pgsql-general
On 18/12/2008 05:26, novnov wrote:
> I have restored a postgres 8.2.4-1 db onto a postgres 8.3.1-1 server, and
> when I try to work with a table I get this error:
>
> Error: Operator does not exist: "char" = integer

A lot of previously automatic casts were removed in the 8.3 series -
this is possibly one of them.

You now need to cast explicitly in such cases, e.g.

  select '5'::integer;

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: SQL plan in functions
Next
From: Peter Eisentraut
Date:
Subject: Re: Other queries locked out during long insert