1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-973 Fix DOUBLE typecast crash

DOUBLE typecast was not supported and the failure detection caused a
crash.

This patch adds support for DOUBLE typecast and fixes the crash caused
when a non-supported function is detected as part of an arithmatic.
This commit is contained in:
Andrew Hutchings
2017-10-20 12:38:11 +03:00
parent cb9714bd90
commit 5911e677fa
4 changed files with 143 additions and 2 deletions

View File

@ -86,6 +86,7 @@ FuncExp::FuncExp()
fFuncMap["cast_as_date"] = new Func_cast_date(); //dlh
fFuncMap["cast_as_datetime"] = new Func_cast_datetime(); //dlh
fFuncMap["decimal_typecast"] = new Func_cast_decimal(); //dlh
fFuncMap["double_typecast"] = new Func_cast_double();
fFuncMap["ceil"] = new Func_ceil(); //dlh
fFuncMap["ceiling"] = new Func_ceil(); //dlh
fFuncMap["char"] = new Func_char(); //dlh