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

MCOL-3776: PrimProc crash

Added sync to timezone var accesses.
This commit is contained in:
Patrick LeBlanc
2020-02-13 16:54:32 -05:00
parent cf668897ef
commit abad95bc04
42 changed files with 85 additions and 80 deletions

View File

@@ -134,7 +134,7 @@ int64_t Func_if::getIntVal(Row& row,
bool& isNull,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getIntVal(row, isNull);
}
@@ -151,7 +151,7 @@ string Func_if::getStrVal(Row& row,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getStrVal(row, isNull);
}
@@ -167,7 +167,7 @@ IDB_Decimal Func_if::getDecimalVal(Row& row,
bool& isNull,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getDecimalVal(row, isNull);
}
@@ -183,7 +183,7 @@ double Func_if::getDoubleVal(Row& row,
bool& isNull,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getDoubleVal(row, isNull);
}
@@ -198,7 +198,7 @@ long double Func_if::getLongDoubleVal(Row& row,
bool& isNull,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getLongDoubleVal(row, isNull);
}
@@ -214,7 +214,7 @@ int32_t Func_if::getDateIntVal(Row& row,
bool& isNull,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getDateIntVal(row, isNull);
}
@@ -230,7 +230,7 @@ int64_t Func_if::getDatetimeIntVal(Row& row,
bool& isNull,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getDatetimeIntVal(row, isNull);
}
@@ -246,7 +246,7 @@ int64_t Func_if::getTimestampIntVal(Row& row,
bool& isNull,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getTimestampIntVal(row, isNull);
}
@@ -262,7 +262,7 @@ int64_t Func_if::getTimeIntVal(Row& row,
bool& isNull,
CalpontSystemCatalog::ColType&)
{
if (boolVal(parm[0], row, fTimeZone))
if (boolVal(parm[0], row, timeZone()))
{
return parm[1]->data()->getTimeIntVal(row, isNull);
}