Re: Given 02-01-2006 to 02-28-2006, output all days. - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: Given 02-01-2006 to 02-28-2006, output all days.
Date
Msg-id 20060219190713.GA43760@winnie.fuhr.org
Whole thread Raw
In response to Re: Given 02-01-2006 to 02-28-2006, output all days.  ("Henry Ortega" <juandelacruz@gmail.com>)
List 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


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Given 02-01-2006 to 02-28-2006, output all days.
Next
From: Michael Fuhr
Date:
Subject: Re: ORDER BY with LTREE