Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7F8D847602A for ; Mon, 7 Oct 2002 19:56:41 -0400 (EDT) Received: from trill.maridan.net (unknown [217.6.52.210]) by postgresql.org (Postfix) with ESMTP id 6C291475F2C for ; Mon, 7 Oct 2002 19:56:39 -0400 (EDT) Received: from rafcio.polonium.de (130-149-145-117.dialup.cs.tu-berlin.de [130.149.145.117]) by trill.maridan.net (8.9.3/8.9.3) with ESMTP id BAA29397 for ; Tue, 8 Oct 2002 01:56:41 +0200 Message-Id: <5.1.0.14.0.20021008013840.01f5be78@mail.polonium.de> X-Sender: rafcio@mail.polonium.de X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 08 Oct 2002 01:53:54 +0200 To: pgsql-sql@postgresql.org From: Rafal Kedziorski Subject: SQL Error Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/96 X-Sequence-Number: 9814 Hallo, I have following table: CREATE TABLE "scheduler_action" ( "scheduler_action_id" numeric(30) NOT NULL, "action_type" numeric(4) NOT NULL, "priority" numeric(4) NOT NULL, "referenced_id" numeric(30) NOT NULL, "invocation_date" numeric(30) NOT NULL, "is_done" numeric(1) NOT NULL, PRIMARY KEY ("scheduler_action_id") ); My quety look so: select t0_o.scheduler_action_id from scheduler_action t0_o where t0_o.is_done = 0 and t0_o.invocation_date <= 1034033214921 And I get following error: ERROR: Unable to identify an operator '<=' for types 'numeric' and 'double precision' You will have to retype this query using an explicit cast But if my query looks like: select t0_o.scheduler_action_id from scheduler_action t0_o where t0_o.is_done = 0 and t0_o.invocation_date <= '1034033214921' "invocation_date" is numeric with p=30 and s=0. Best Regards, Rafal