Tom> Feel like hacking the code?
Hmm, in principle I might take a look some time; in reality it's
unlikely I'll have time any time soon...
There are some design issues involved, though. If you have the type
modifier, do you isnist on SQL syntax in the string?
ie do you accept
interval '1 day 1 hour' day to second
Personally I think it would be a bad idea to allow hybrid SQL/postgres
syntax like this.
IMHO, you should either write
interval '1 day 1 hour'
(postgres style), or
interval '1 1:00:00' day to second
Hmm, except writing the above has just raised another question. Is
that what the postgres-ism really means (I think it does) or does it
interval '1 1' day to hour
Once you start distinguishing your interval types, does this become
important? Actually, I can't immediately see a case where it would
matter, but that doesn't mean there isn't one...
In response to
pgsql-bugs by date
|Next:||From: Tom Lane||Date: 2005-03-19 18:08:06|
|Subject: Re: BUG #1517: SQL interval syntax is accepted by the parser, |
|Previous:||From: Stephan Szabo||Date: 2005-03-19 16:53:57|
|Subject: Re: BUG #1518: Conversions to (undocumented) SQL year-month|