EXTRACT broken - Mailing list pgsql-hackers

From Peter Eisentraut
Subject EXTRACT broken
Date
Msg-id Pine.LNX.4.30.0110092246100.672-100000@peter.localdomain
Whole thread Raw
List pgsql-hackers
Just updated...

peter=# SELECT EXTRACT(DOW FROM TIMESTAMP '2001-02-16 20:38:40');
ERROR:  Timestamp with time zone units 'dow' not recognized

This is documented to work.

peter=# SELECT EXTRACT(DOW FROM TIME '20:38:40');
ERROR:  Interval units 'dow' not recognized

The expression is nonsensical, but so is the result.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: text(bool) not defined
Next
From: Peter Eisentraut
Date:
Subject: Re: What about CREATE OR REPLACE FUNCTION?