diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-03-17 14:13:03 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-03-17 14:13:03 +0100 |
commit | 1cda2654578b82da52c29a829d463955f8795cc9 (patch) | |
tree | f3a8de34f4bf0c331723a999dedc78e87be4b9bb /sql/field.cc | |
parent | a169ede155937cba04b01ea104d7904d89f87007 (diff) | |
download | mariadb-git-1cda2654578b82da52c29a829d463955f8795cc9.tar.gz |
* 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.
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc index f32f7d3c214..16b250ed63c 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -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); } |