Details
Description
This script
drop table if exists t1; create table t1 as select timestamp('2001-01-01','10:10:10') as a; show columns from t1;
creates a VARCHAR(26) column:
+-------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+-------+ | a | varchar(26) | YES | | NULL | | +-------+-------------+------+-----+---------+-------+
The expected result is a DATETIME column.
Note: MySQL-5.6 correctly creates a DATETIME column in this scenario.
Gliffy Diagrams
Attachments
Issue Links
- is blocked by
-
MDEV-4724 Some temporal functions do not preserve microseconds
-
- Closed
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
This problem should be fixed after
MDEV-4724, to avoid a field of type TIME(6)being always created, even with a smaller number of fractional digits.