2020-08-22 17:52:35 +00:00
|
|
|
#include "StorageSystemTimeZones.h"
|
2020-08-19 08:34:03 +00:00
|
|
|
|
2020-08-22 17:52:35 +00:00
|
|
|
#include <algorithm>
|
|
|
|
#include <DataTypes/DataTypeString.h>
|
2020-08-19 08:34:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
extern const char * auto_time_zones[];
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
NamesAndTypesList StorageSystemTimeZones::getNamesAndTypes()
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
{"time_zone", std::make_shared<DataTypeString>()},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-04-10 23:33:54 +00:00
|
|
|
void StorageSystemTimeZones::fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const
|
2020-08-19 08:34:03 +00:00
|
|
|
{
|
|
|
|
for (auto * it = auto_time_zones; *it; ++it)
|
2020-08-24 20:29:56 +00:00
|
|
|
res_columns[0]->insert(String(*it));
|
2020-08-19 08:34:03 +00:00
|
|
|
}
|
|
|
|
}
|