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

MCOL-3536 Collation

This commit is contained in:
David Hall
2020-06-03 19:43:53 -05:00
parent 39a93ef753
commit 889094a23d
16 changed files with 211 additions and 151 deletions

View File

@ -53,22 +53,22 @@ bool boolVal(SPTP& parm, Row& row, const string& timeZone)
case CalpontSystemCatalog::TEXT:
case CalpontSystemCatalog::VARCHAR:
ret = (atoi((char*)(parm->data()->getStrVal(timeZone).c_str())) != 0);
break;
case CalpontSystemCatalog::FLOAT:
case CalpontSystemCatalog::UFLOAT:
ret = (parm->data()->getFloatVal(row, isNull) != 0);
break;
case CalpontSystemCatalog::DOUBLE:
case CalpontSystemCatalog::UDOUBLE:
ret = (parm->data()->getDoubleVal(row, isNull) != 0);
break;
case CalpontSystemCatalog::LONGDOUBLE:
ret = (parm->data()->getLongDoubleVal(row, isNull) != 0);
break;
case CalpontSystemCatalog::DECIMAL:
case CalpontSystemCatalog::UDECIMAL:
ret = (parm->data()->getDecimalVal(row, isNull).value != 0);
break;
case CalpontSystemCatalog::BIGINT:
case CalpontSystemCatalog::SMALLINT:
case CalpontSystemCatalog::MEDINT:
@ -83,6 +83,7 @@ bool boolVal(SPTP& parm, Row& row, const string& timeZone)
case CalpontSystemCatalog::TIME:
default:
ret = (parm->data()->getIntVal(row, isNull) != 0);
break;
}
}