You've already forked mariadb-columnstore-engine
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:
@ -2612,7 +2612,7 @@ ArithmeticColumn* buildArithmeticColumn(Item_func* item, gp_walk_info& gwi, bool
|
||||
}
|
||||
}
|
||||
|
||||
if (!lhs->data() || !rhs->data() || nonSupport)
|
||||
if (nonSupport || !lhs->data() || !rhs->data())
|
||||
{
|
||||
gwi.fatalParseError = true;
|
||||
if (gwi.parseErrorText.empty())
|
||||
@ -2645,7 +2645,7 @@ ArithmeticColumn* buildArithmeticColumn(Item_func* item, gp_walk_info& gwi, bool
|
||||
gwi.rcWorkStack.pop();
|
||||
}
|
||||
}
|
||||
if (!rhs->data() || nonSupport)
|
||||
if (nonSupport || !rhs->data())
|
||||
{
|
||||
gwi.fatalParseError = true;
|
||||
if (gwi.parseErrorText.empty())
|
||||
|
Reference in New Issue
Block a user