pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Perrin - Demography <aperrin@demog.berkeley.edu>
To: Kenn Thompson <KThompson@adestagroup.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Stupid Monday Problem
Date: Mon, 17 Apr 2000 09:20:31 -0700 (PDT)
Message-ID: <Pine.SUN.4.10.10004170919260.6206-100000@davis.DEMOG.Berkeley.EDU> (raw)
In-Reply-To: <s8fae784.037@10.0.0.4>

You have to cast the date properly - postgres is interpreting this as 4
divided by 16 divided by 0.  Try:

SELECT oid FROM file_header WHERE expire_date < '04/16/00'::date;

---------------------------------------------------------------------
Andrew J. Perrin - aperrin@demog.berkeley.edu - NT/Unix Admin/Support
Department of Demography    -    University of California at Berkeley
2232 Piedmont Avenue #2120  -    Berkeley, California, 94720-2120 USA
http://demog.berkeley.edu/~aperrin --------------------------SEIU1199

On Mon, 17 Apr 2000, Kenn Thompson wrote:

> Ok- here's the problem ( too little coffee?)...
> 
> This query runs under Access. I of course change a bit of the SQL ( removed the '#' and have played with quotes), but can't seem to get it to run.
> 
> What the #%$^& am I doing wrong here?
> 
> Kenn
> 
> 
> SELECT oid FROM file_header WHERE expire_date < 04/16/00 
> ADODB.Recordset.1 error '80004005' 
> 
> Error while executing the query; ERROR: Unable to identify an operator '<' for types 'date' and 'int4' You will have to retype this query using an explicit cast 
> 
> 
> 
> 




view thread (4+ messages)

Message-ID: <Pine.SUN.4.10.10004170919260.6206-100000@davis.DEMOG.Berkeley.EDU>
Permalink:  ../Pine.SUN.4.10.10004170919260.6206-100000@davis.DEMOG.Berkeley.EDU/
Also on:    postgresql.org/message-id/Pine.SUN.4.10.10004170919260.6206-100000@davis.DEMOG.Berkeley.EDU

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: aperrin@demog.berkeley.edu, KThompson@adestagroup.com
  Subject: Re: Stupid Monday Problem
  In-Reply-To: <Pine.SUN.4.10.10004170919260.6206-100000@davis.DEMOG.Berkeley.EDU>
  References: <s8fae784.037@10.0.0.4> <Pine.SUN.4.10.10004170919260.6206-100000@davis.DEMOG.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox