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

From Merlin Moncure
Subject Re: This is my first template
Date
Msg-id b42b73150904210434m70ffa1fbhcc3c351b142efcd4@mail.gmail.com
Whole thread Raw
In response to This is my first template  (Geoff Caplan <geoff@uviva.com>)
Responses Re: This is my first template
List pgsql-general
On Tue, Apr 21, 2009 at 7:02 AM, Geoff Caplan <geoff@uviva.com> wrote:
> Hi folks
>
> Looks like there's something I'm not understanding about date/time queries
> on a date field.
>
> I have a param query that includes the statement:
>
> AND active_from_date <= $2
>
> 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"

"2011-4-31" is not a well formed ISO date.

merlin

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: This is my first template
Next
From: milos.babic@gmail.com
Date:
Subject: Re: This is my first template