Re: This is my first template - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: This is my first template
Date
Msg-id 20090421142929.GN10358@alvh.no-ip.org
Whole thread Raw
In response to This is my first template  (Geoff Caplan <geoff@uviva.com>)
List pgsql-general
Geoff Caplan wrote:

> where $2 is a well-formed ISO date.
>
> Query works as expected when there are records in the result set. When
> the result set is empty, PG throws an error:
>
> date/time field value out of range: "2011-4-31"

Is April 31st really a well-formed ISO date?  I wonder what jhey smoke
there in ISO meetings.

My guess is that you're doing date arithmetic wrong somewhere.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Diego Schulz
Date:
Subject: Re: Error stranger
Next
From: Larry Kincaid
Date:
Subject: truncate capability in 8.1