mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
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.
This commit is contained in:
parent
9844f0abdb
commit
591cfbff30
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue