2018-07-20 13:17:16 +00:00
|
|
|
#include <Columns/Collator.h>
|
|
|
|
#include <Storages/System/StorageSystemCollations.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2018-07-24 14:28:56 +00:00
|
|
|
|
|
|
|
NamesAndTypesList StorageSystemCollations::getNamesAndTypes()
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
{"name", std::make_shared<DataTypeString>()},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
void StorageSystemCollations::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
|
2018-07-20 13:17:16 +00:00
|
|
|
{
|
2018-07-23 16:10:57 +00:00
|
|
|
for (const auto & collation_name : Collator::getAvailableCollations())
|
|
|
|
res_columns[0]->insert(collation_name);
|
2018-07-20 13:17:16 +00:00
|
|
|
}
|
2018-07-24 14:28:56 +00:00
|
|
|
|
2018-07-20 13:17:16 +00:00
|
|
|
}
|