* 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
commit 1cda265457
7 changed files with 37 additions and 11 deletions

View file

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