Re: This is my first template

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Geoff Caplan <geoff(at)uviva(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: This is my first template
Date: 2009-04-21 14:29:29
Message-ID: 20090421142929.GN10358@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Larry Kincaid 2009-04-21 14:31:55 truncate capability in 8.1
Previous Message ray 2009-04-21 14:26:13 Re: Part way there, how do I complete it