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-265 Add support for TIMESTAMP data type
This commit is contained in:
@ -76,7 +76,8 @@ const long long infinidb_precision[19] =
|
||||
//------------------------------------------------------------------------------
|
||||
XMLJob::XMLJob( ) : fDebugLevel( DEBUG_0 ),
|
||||
fDeleteTempFile(false),
|
||||
fValidateColList(true)
|
||||
fValidateColList(true),
|
||||
fTimeZone("SYSTEM")
|
||||
{
|
||||
}
|
||||
|
||||
@ -1128,6 +1129,22 @@ void XMLJob::fillInXMLDataNotNullDefault(
|
||||
break;
|
||||
}
|
||||
|
||||
case execplan::CalpontSystemCatalog::TIMESTAMP:
|
||||
{
|
||||
int convertStatus;
|
||||
int64_t dt =
|
||||
dataconvert::DataConvert::convertColumnTimestamp(
|
||||
col_defaultValue.c_str(),
|
||||
dataconvert::CALPONTDATETIME_ENUM, convertStatus,
|
||||
col_defaultValue.length(), fTimeZone );
|
||||
|
||||
if (convertStatus != 0)
|
||||
bDefaultConvertError = true;
|
||||
|
||||
col.fDefaultInt = dt;
|
||||
break;
|
||||
}
|
||||
|
||||
case execplan::CalpontSystemCatalog::TIME:
|
||||
{
|
||||
int convertStatus;
|
||||
|
Reference in New Issue
Block a user