Hrm. interval() function? - Mailing list pgsql-hackers

From Larry Rosenman
Subject Hrm. interval() function?
Date
Msg-id 40080000.1047609663@lerlaptop.lerctr.org
Whole thread Raw
List pgsql-hackers
While doing the previous post, I found that the following fails, should it?

PG 7.3.2 on FreeBSD:


ler=# \df interval                        List of functionsResult data type |   Schema   |   Name   |  Argument data
types
------------------+------------+----------+------------------------interval         | pg_catalog | interval |
reltimeinterval        | pg_catalog | interval | textinterval         | pg_catalog | interval | time without time zone
 
(3 rows)

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=#
-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749





pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: Roadmap for FE/BE protocol redesign
Next
From: Neil Conway
Date:
Subject: Re: Upgrading the backend's error-message infrastructure