Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0384365015E for ; Sat, 23 Aug 2008 21:25:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41209-07 for ; Sat, 23 Aug 2008 21:25:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by postgresql.org (Postfix) with ESMTP id C7BAD6501F9 for ; Sat, 23 Aug 2008 21:21:48 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1756103rvf.43 for ; Sat, 23 Aug 2008 17:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=9bUEXRy6AbnzfzPhV0vpnErBzossTEPOc0KL9UkVIew=; b=V5PDjtWzXVkNHp/4DOcjSvZlIsixxeq/1mgcFM0rszTKgFA3lO2KT/iAIZfPh3BiAr QhrHwRq9uCiPsDEQiDDEbtxmME4TXpYuknrkYkptKNA0Jx2TuNDmQ9iDQFg/Z0MGAX4F mQw41jMj/Jf2i/wcSQSEw/9b3JMwqhp6c6q0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QXdtsTsb+pZ1T6a90ttYqn8c07zm1wQLlNgyMPI1lvuM+zJzJG4/Fnm/K/njUI//tY nLWY7VccUljwptuCriJVIXT5ltubjeZhAG9kVzXyqzkvsgl4rpUPxuNV0IU1/HVzz1+w +63usYCzWe05uwx4OywJOAY3y0kwY/UR4aJ3Y= Received: by 10.141.23.7 with SMTP id a7mr1361029rvj.5.1219537306824; Sat, 23 Aug 2008 17:21:46 -0700 (PDT) Received: by 10.141.197.1 with HTTP; Sat, 23 Aug 2008 17:21:46 -0700 (PDT) Message-ID: Date: Sat, 23 Aug 2008 18:21:46 -0600 From: "Scott Marlowe" To: "c k" Subject: Re: odbc error, operator does not exist Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/142 X-Sequence-Number: 29987 On Sat, Aug 23, 2008 at 12:05 PM, c k wrote: > Hello all, > > As I am testing our old mysql based erp app., on postgresql with most of > things are as they are in MySQL db with PG 8.3, Unicode ODBC driver and > Access 2003, I got this error: > ODBC -call failed. Operator does not exist: date < numeric;error while > executing the query. This error does not comes when we use mysql. and we are > not using any type server based views, stored procs ec. for this. This error > comes when I use a dlookup function to check whether date field is less than > a form value. It seems that this will be an ODBC driver problem to not cast > the value properly. Please give the solution and the details. How are we supposed to compare a date to a numeric? What does '2008-08-23 12:45:34' < 1000000 mean?