Re: Given 02-01-2006 to 02-28-2006, output all days.

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Henry Ortega <juandelacruz(at)gmail(dot)com>
Cc: Owen Jacobson <ojacobson(at)osl(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Given 02-01-2006 to 02-28-2006, output all days.
Date: 2006-02-19 19:07:13
Message-ID: 20060219190713.GA43760@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sun, Feb 19, 2006 at 01:47:21PM -0500, Henry Ortega wrote:
> I was able to find a suitable 7.3.2 plpgsql.so and now plpgsql works.
> (supposedly)
>
> I am trying out some really basic function creation such as this:
>
> create function dng2(start_date DATE) returns setof date as $$
> declare
> aa date:=start_date;
>
> But I always get this
> ERROR: parser: parse error at or near "DATE" at character 33
> before I can even finish.

You're using features (named parameters, dollar quotes) that are
available only in 8.0 and later; see the 7.3 documentation for the
correct syntax in that version. But as someone else mentioned, do
consider upgrading, if not to 8.1.3 or 8.0.7 then at least to 7.3.14.
Lots of bugs have been fixed in the three years since 7.3.2 was
released, some involving data loss.

--
Michael Fuhr

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2006-02-20 07:41:20 Re: ORDER BY with LTREE
Previous Message Stephan Szabo 2006-02-19 18:57:30 Re: Given 02-01-2006 to 02-28-2006, output all days.