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

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Given 02-01-2006 to 02-28-2006, output all days.
Дата
Msg-id 20060219190713.GA43760@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Given 02-01-2006 to 02-28-2006, output all days.  ("Henry Ortega" <juandelacruz@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Given 02-01-2006 to 02-28-2006, output all days.
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: ORDER BY with LTREE