Re: EXTRACT broken

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: EXTRACT broken
Date: 2001-10-11 20:02:42
Message-ID: Pine.LNX.4.30.0110112038330.841-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Lockhart writes:

> > peter=# SELECT EXTRACT(DOW FROM TIME '20:38:40');
> > ERROR: Interval units 'dow' not recognized
> > The expression is nonsensical, but so is the result.
>
> Hmm. Why is the result nonsensical? "day of week" does not have meaning
> for intervals, so it should not be recognized, right?

It's the "interval" part that's troubling me, since it appears nowhere in
the original expression.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2001-10-11 20:09:25 Re: Deadlock? idle in transaction
Previous Message Bruce Momjian 2001-10-11 19:46:42 Re: FAQ error