You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
fix(join): Fixes MCOL-5056, an error of joining TEXT column from InnoDB (#3160)
We incorrectly identified TEXT columns from external tables as BLOB. Alexander Barkov suggested a way to discriminate them which I implemented here.
This commit is contained in:
committed by
Leonid Fedorov
parent
11324c468d
commit
5f6080e09c
@ -3306,6 +3306,11 @@ CalpontSystemCatalog::ColType colType_MysqlToIDB(const Item* item)
|
||||
// because many textual types in server have type_handler_blob
|
||||
// (and variants) as their type.
|
||||
ct.colDataType = CalpontSystemCatalog::BLOB;
|
||||
const Item_result_field* irf = dynamic_cast<const Item_result_field*>(item);
|
||||
if (irf && irf->result_field && !irf->result_field->binary())
|
||||
{
|
||||
ct.colDataType = CalpontSystemCatalog::TEXT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user