Re: Ocasional problems !!!!

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Luis Sousa <llsousa(at)ualg(dot)pt>
Cc: pgsql-hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Ocasional problems !!!!
Date: 2000-12-14 16:14:53
Message-ID: 3A38F1FD.493C0314@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> i'm having this message:
> ERROR: Unable to identify an operator '=' for types 'int4' and 'text'
> You will have to retype this query using an explicit cast

Without knowing your schema and query, we can't tell you exactly. But
your query is trying to compare a string to an integer, which you can do
by using an explicit cast. For example,

select text '123' = 123;

will fail, but

select cast((text '123') as integer) = 123;

will succeed.

- Thomas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2000-12-14 16:14:58 switching txlog file in 7.1beta
Previous Message Ross J. Reedstrom 2000-12-14 16:14:13 Re: Why vacuum?