From: Patrik Kudo <kudo@partitur.se>
To: Kenn Thompson <KThompson@adestagroup.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Stupid Monday Problem
Date: Mon, 17 Apr 2000 17:49:24 +0200
Message-ID: <38FB3284.52D36AC3@partitur.se> (raw)
References: <s8fae784.037@10.0.0.4>
Hi.
Dates should be quoted like '04/16/00'
What you're trying to do is to calculate
an integer of value 04/16/00 (which, if
the parser would let it through, would
even generate a division by zero error.)
Regards,
Patrik Kudo
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
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: kudo@partitur.se, KThompson@adestagroup.com
Subject: Re: Stupid Monday Problem
In-Reply-To: <38FB3284.52D36AC3@partitur.se>
References: <s8fae784.037@10.0.0.4> <38FB3284.52D36AC3@partitur.se>
* 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