Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA41PDq10153 for ; Sat, 3 Nov 2001 20:25:13 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.7) with HTTP id 498327; Sat, 03 Nov 2001 17:42:30 -0800 From: "Josh Berkus" Subject: Re: Strange Problem As Type Casting To: Bhuvan A Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.7 Date: Sat, 03 Nov 2001 17:42:30 -0800 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200111/39 X-Sequence-Number: 5424 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@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco