Re: Strange Problem As Type Casting - Mailing list pgsql-sql

From Tom Lane
Subject Re: Strange Problem As Type Casting
Date
Msg-id 2205.1004803262@sss.pgh.pa.us
Whole thread Raw
In response to Strange Problem As Type Casting  (Bhuvan A <bhuvansql@yahoo.com>)
List pgsql-sql
Bhuvan A <bhuvansql@yahoo.com> writes:
> test=> UPDATE users set user_id=1 ,login_id='admin' where user_id='1346';
> ERROR:  Unable to identify an operator '=' for types 'text' and 'int4'
>         You will have to retype this query using an explicit cast

Got any triggers, rules, or foreign keys for this table?  The error is
not necessarily in the command you typed, it could be in subsidiary
processing.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Edward Grabczewski"
Date:
Subject: Re: SQL FUNCTION return type on INSERT
Next
From: "Josh Berkus"
Date:
Subject: Re: SQL FUNCTION return type on INSERT