1
0
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:
Sergei Golubchik
2011-03-17 14:13:03 +01:00
parent a169ede155
commit 1cda265457
7 changed files with 37 additions and 11 deletions

View File

@@ -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)