Re: Why is this allowed? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why is this allowed?
Date
Msg-id 10815.1173575466@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why is this allowed?  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Why is this allowed?  ("Chuck McDevitt" <cmcdevitt@greenplum.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> "Chuck McDevitt" <cmcdevitt@greenplum.com> writes:
>> Why don't we have some kind of error check for people entering things
>> like   INTERVAL '1' DAY in their query, since we don't handle it.

> Because it's not an error. It just doesn't mean what you think it means.

What it is is an incompletely implemented feature.  That syntax is
required by the SQL spec, and Tom Lockhart had been making progress
towards supporting it when he got bored and left the project.  Where
he left it is that the grammar accepts it but the interval input routine
isn't paying any attention to the qualifier.

I'm not eager to rip out what's there, but I don't personally feel
like making it work either...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Why is this allowed?
Next
From: "Chuck McDevitt"
Date:
Subject: Re: Why is this allowed?