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-392 Add initial TIME datatype support
This commit is contained in:
@ -222,6 +222,26 @@ int64_t Func_inet_aton::getDatetimeIntVal(rowgroup::Row& row,
|
||||
return iValue;
|
||||
}
|
||||
|
||||
int64_t Func_inet_aton::getTimeIntVal(rowgroup::Row& row,
|
||||
FunctionParm& fp,
|
||||
bool& isNull,
|
||||
execplan::CalpontSystemCatalog::ColType& op_ct)
|
||||
{
|
||||
int64_t iValue = joblist::TIMENULL;
|
||||
|
||||
const std::string& sValue = fp[0]->data()->getStrVal(row, isNull);
|
||||
|
||||
if (!isNull)
|
||||
{
|
||||
int64_t iVal = convertAton( sValue, isNull );
|
||||
|
||||
if (!isNull)
|
||||
iValue = iVal;
|
||||
}
|
||||
|
||||
return iValue;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Convert an ascii IP address string to it's integer equivalent.
|
||||
// isNull is set to true if the IP address string has invalid content.
|
||||
|
Reference in New Issue
Block a user