1
0
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:
Andrew Hutchings
2018-04-23 19:20:31 +01:00
parent b584a7f555
commit 3c1ebd8b94
109 changed files with 2241 additions and 47 deletions

View File

@ -106,6 +106,21 @@ uint64_t Func::stringToDatetime(const string str)
return ret;
}
int64_t Func::stringToTime(const string str)
{
int64_t ret = DataConvert::stringToTime(str);
if (ret == -1)
{
Message::Args args;
args.add("time");
args.add(str);
unsigned errcode = ERR_INCORRECT_VALUE;
throw IDBExcept(IDBErrorInfo::instance()->errorMsg(errcode, args), errcode);
}
return ret;
}
uint32_t Func::intToDate(int64_t i)
{
@ -124,6 +139,11 @@ uint64_t Func::intToDatetime(int64_t i)
return i;
}
int64_t Func::intToTime(int64_t i)
{
// Don't think we need to do anything here?
return i;
}
string Func::intToString(int64_t i)
{