You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-641 Add support for functions (Part 2).
This commit is contained in:
committed by
Roman Nozdrin
parent
bd0d5af123
commit
6aea838360
@ -43,7 +43,7 @@ bool boolVal(SPTP& parm, Row& row, const string& timeZone)
|
||||
|
||||
try
|
||||
{
|
||||
ret = parm->getBoolVal(row, isNull);
|
||||
ret = parm->getBoolVal(row, isNull) && !isNull;
|
||||
}
|
||||
catch (logging::NotImplementedExcept&)
|
||||
{
|
||||
@ -67,7 +67,10 @@ bool boolVal(SPTP& parm, Row& row, const string& timeZone)
|
||||
break;
|
||||
case CalpontSystemCatalog::DECIMAL:
|
||||
case CalpontSystemCatalog::UDECIMAL:
|
||||
ret = (parm->data()->getDecimalVal(row, isNull).value != 0);
|
||||
if (parm->data()->resultType().colWidth == datatypes::MAXDECIMALWIDTH)
|
||||
ret = (parm->data()->getDecimalVal(row, isNull).s128Value != 0);
|
||||
else
|
||||
ret = (parm->data()->getDecimalVal(row, isNull).value != 0);
|
||||
break;
|
||||
case CalpontSystemCatalog::BIGINT:
|
||||
case CalpontSystemCatalog::SMALLINT:
|
||||
|
Reference in New Issue
Block a user