mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
* fix for ALTER TABLE ... MODIFY timestamp->timestamp.
Use dedicated do_field_temporal() for Copy_field. * check_time_range() needs to know TIME's precision to use the correct max value.
This commit is contained in:
@@ -158,6 +158,14 @@ select time(f1) from t1 union all select time(f1) from t1;
|
||||
time(f1)
|
||||
21:00:00.000000
|
||||
21:00:00.000000
|
||||
alter table t1 modify f1 timestamp;
|
||||
select time(f1) from t1;
|
||||
time(f1)
|
||||
21:00:00
|
||||
select time(f1) from t1 union all select time(f1) from t1;
|
||||
time(f1)
|
||||
21:00:00
|
||||
21:00:00
|
||||
alter table t1 modify f1 varchar(100);
|
||||
select time(f1) from t1;
|
||||
time(f1)
|
||||
|
||||
Reference in New Issue
Block a user