Re: Date Question

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Sharon Cowling <sharon(dot)cowling(at)sslnz(dot)com>, "Pgsql-Novice (E-mail)" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Date Question
Date: 2002-06-27 22:37:03
Message-ID: 200206271537.03939.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


Sharon,

> taupo-> AND OVERLAPS ('27-06-02', '11-07-02', date_from, date_to)
> taupo-> ORDER BY permit_id ;
> ERROR: Function 'overlaps(unknown, unknown, date, date)' does not exist
> Unable to identify a function that satisfies the given argument
types
> You may need to add explicit typecasts

As the message says, you need to add explicit typecasts:

AND OVERLAPS ('27-06-02'::DATE, '11-07-02'::DATE, date_from, date_to)

--
-Josh Berkus

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Rory Campbell-Lange 2002-06-27 22:42:06 select 2 random rows
Previous Message Rory Campbell-Lange 2002-06-27 21:58:44 simplify case statement with function?