Re: Oddity with extract microseconds? - Mailing list pgsql-hackers

From Michael Fuhr
Subject Re: Oddity with extract microseconds?
Date
Msg-id 20051207025337.GA61048@winnie.fuhr.org
Whole thread Raw
In response to Re: Oddity with extract microseconds?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
On Wed, Dec 07, 2005 at 10:47:45AM +0800, Christopher Kings-Lynne wrote:
> Ok, and what does this give:
> 
> SELECT EXTRACT(MICROSECOND FROM '2003-01-02 10:30:01.00123');

mysql> SELECT EXTRACT(MICROSECOND FROM '2003-01-02 10:30:01.00123');
+-------------------------------------------------------+
| EXTRACT(MICROSECOND FROM '2003-01-02 10:30:01.00123') |
+-------------------------------------------------------+
|                                                  1230 |
+-------------------------------------------------------+
1 row in set (0.00 sec)

Does contrary behavior from MySQL count as evidence that PostgreSQL's
behavior is correct? :-)

-- 
Michael Fuhr


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: Oddity with extract microseconds?
Next
From: Andrew Dunstan
Date:
Subject: more locale problems on Windows