| From: | Allan Engelhardt <allane(at)cybaea(dot)com> |
|---|---|
| To: | Josh Berkus <josh(at)agliodbs(dot)com> |
| Subject: | Re: Data type confusion |
| Date: | 2001-08-05 22:20:05 |
| Message-ID: | 3B6DC695.599C2571@cybaea.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Josh Berkus wrote:
> This is a multi-part MIME message
>
> --_===97089====davinci.ethosmedia.com===_
> Content-Type: text/plain; charset="ISO-8859-1"
> Content-Transfer-Encoding: 8bit
>
> Tom, Stephan,
>
> I'm writing up the date/time FAQ, and I came across some operator
> behavior that confuses me:
>
> If
> INTERVAL / INTEGER = INTERVAL
>
> then why does
> INTERVAL / INTERVAL = ERROR?
>
> Shouldn't
> INTERVAL / INTERVAL = INTEGER?
>
> I'd like to answer this before I finish the FAQ, as it seems
> inconsistent behavior.
>
> -Josh
>
>
Josh,
I'm not Tom or Stephan (sorry) but in your scenario what would be the result of, say, dividing '3 months ago' with '6 seconds' in the future?
I don't think it makes conceptual sense to divide intervals....
Allan.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2001-08-05 22:45:20 | Re: Data type confusion |
| Previous Message | Josh Berkus | 2001-08-05 22:12:12 | Re: Re: Date Time Functions - ANSI SQL ? |