Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
When executed in a UNION context, datetime operations return a millisecond precision, even though no fractional seconds were used anywhere in the expression.
Test case:
CREATE TABLE t1 (f1 timestamp(6));
INSERT INTO t1 VALUES ('2002-07-15 21:00:00');
SELECT TIME(f1) FROM t1;
returns:
21:00:00
( SELECT TIME(f1) FROM t1) UNION ALL ( SELECT TIME(f1) FROM t1);
returns
21:00:00.000000
21:00:00.000000
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Re: Unexpected increased timestamp resolution with UNION
Same applies for DISTINCT