mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02: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:
parent
a169ede155
commit
1cda265457
7 changed files with 37 additions and 11 deletions
|
|
@ -5348,7 +5348,7 @@ int Field_time::store_time(MYSQL_TIME *ltime, timestamp_type time_type)
|
|||
Lazy_string_time str(ltime);
|
||||
int was_cut= 0;
|
||||
|
||||
int have_smth_to_conv= !check_time_range(&l_time, &was_cut);
|
||||
int have_smth_to_conv= !check_time_range(&l_time, decimals(), &was_cut);
|
||||
return store_TIME_with_warning(&l_time, &str, was_cut, have_smth_to_conv);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue