Hrm. interval() function?

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Hrm. interval() function?
Date: 2003-03-14 02:41:03
Message-ID: 40080000.1047609663@lerlaptop.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 functions
Result data type | Schema | Name | Argument data types
------------------+------------+----------+------------------------
interval | pg_catalog | interval | reltime
interval | pg_catalog | interval | text
interval | 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(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2003-03-14 02:44:29 Re: Upgrading the backend's error-message infrastructure
Previous Message Larry Rosenman 2003-03-14 02:37:50 Re: Roadmap for FE/BE protocol redesign