From 591cfbff308032fd5863a4aff30e5ae3d1b2d05c Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 17 Apr 2006 15:36:25 +0500 Subject: [PATCH] item_timefunc.cc: 5.0 additional fix for b#18691 Handle DECIMAL the same with INT and REAL. sql/item_timefunc.cc: 5.0 additional fix for b#18691 Handle DECIMAL the same with INT and REAL. --- sql/item_timefunc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 84e532ba4bc..200541f22a7 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -2457,6 +2457,7 @@ void Item_char_typecast::fix_length_and_dec() the argument's charset. */ from_cs= (args[0]->result_type() == INT_RESULT || + args[0]->result_type() == DECIMAL_RESULT || args[0]->result_type() == REAL_RESULT) ? (cast_cs->mbminlen == 1 ? cast_cs : &my_charset_latin1) : args[0]->collation.collation;