Re: Strange Problem As Type Casting

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: Bhuvan A <bhuvansql(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Strange Problem As Type Casting
Date: 2001-11-04 01:42:30
Message-ID: web-498327@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Bhuvanm

> 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

Stop quoting your integers. It should be
WHERE user_id = 1346

No quotes for numbers.

-Josh

______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2001-11-04 01:53:02 Book reviews are up
Previous Message Josh Berkus 2001-11-04 01:39:15 Re: SQL FUNCTION return type on INSERT