You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-02 06:13:16 +03:00
Merge branch 'master' of https://github.com/davidhilldallas/InfiniDB_MariaDB
This commit is contained in:
@@ -343,7 +343,7 @@ static void calpont_set_error(THD* thd, uint64_t errCode, LEX_STRING* args, uint
|
|||||||
|
|
||||||
ha_calpont::ha_calpont(handlerton *hton, TABLE_SHARE *table_arg) :
|
ha_calpont::ha_calpont(handlerton *hton, TABLE_SHARE *table_arg) :
|
||||||
handler(hton, table_arg),
|
handler(hton, table_arg),
|
||||||
int_table_flags(HA_BINLOG_STMT_CAPABLE |
|
int_table_flags(HA_BINLOG_STMT_CAPABLE | HA_BINLOG_ROW_CAPABLE |
|
||||||
HA_TABLE_SCAN_ON_INDEX |
|
HA_TABLE_SCAN_ON_INDEX |
|
||||||
HA_CAN_TABLE_CONDITION_PUSHDOWN)
|
HA_CAN_TABLE_CONDITION_PUSHDOWN)
|
||||||
// int_table_flags(HA_NO_BLOBS | HA_BINLOG_STMT_CAPABLE)
|
// int_table_flags(HA_NO_BLOBS | HA_BINLOG_STMT_CAPABLE)
|
||||||
|
|||||||
@@ -145,7 +145,18 @@ int64_t Func_from_unixtime::getIntVal(rowgroup::Row& row,
|
|||||||
bool& isNull,
|
bool& isNull,
|
||||||
CalpontSystemCatalog::ColType& ct)
|
CalpontSystemCatalog::ColType& ct)
|
||||||
{
|
{
|
||||||
return getDatetimeIntVal(row, parm, isNull, ct);
|
DateTime dt = getDateTime(row, parm, isNull);
|
||||||
|
if (*reinterpret_cast<int64_t*>(&dt) == 0)
|
||||||
|
{
|
||||||
|
isNull = true;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
char buf[32]; // actual string guaranteed to be 22
|
||||||
|
snprintf( buf, 32, "%04d%02d%02d%02d%02d%02",
|
||||||
|
dt.year, dt.month, dt.day, dt.hour,
|
||||||
|
dt.minute, dt.second );
|
||||||
|
return atoll(buf);
|
||||||
|
// return getDatetimeIntVal(row, parm, isNull, ct);
|
||||||
}
|
}
|
||||||
|
|
||||||
double Func_from_unixtime::getDoubleVal(rowgroup::Row& row,
|
double Func_from_unixtime::getDoubleVal(rowgroup::Row& row,
|
||||||
|
|||||||
Reference in New Issue
Block a user