Re: Date Question - Mailing list pgsql-novice

From Josh Berkus
Subject Re: Date Question
Date
Msg-id 200206271537.03939.josh@agliodbs.com
Whole thread Raw
In response to Re: Date Question  (Sharon Cowling <sharon.cowling@sslnz.com>)
List 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




pgsql-novice by date:

Previous
From: Rory Campbell-Lange
Date:
Subject: simplify case statement with function?
Next
From: Rory Campbell-Lange
Date:
Subject: select 2 random rows