Re: Hrm. interval() function?
| От | Christopher Kings-Lynne |
|---|---|
| Тема | Re: Hrm. interval() function? |
| Дата | |
| Msg-id | 0da301c2e9d4$cb00c8c0$6500a8c0@fhp.internal обсуждение исходный текст |
| Ответ на | Hrm. interval() function? (Larry Rosenman <ler@lerctr.org>) |
| Ответы |
Re: Hrm. interval() function?
|
| Список | pgsql-hackers |
> >> ler=# select interval('6 months');
> >> ERROR: parser: parse error at or near "'6 months'" at character 17
> >> ler=# select interval('6 months'::text);
> >> ERROR: parser: parse error at or near "'6 months'" at character 17
> >> ler=#
> >
> > Try:
> >
> > select "interval"('6 months');
> >
> That works, but is non-intuitive. I assume this is a reserved word issue?
It's been like that since 7.2 introduced sql standard syntax for various
timestmap things.
> Can it be fixed?
Nope - the correct way to use that function is this:
select interval '6 months';
Chris
В списке pgsql-hackers по дате отправления: