ClickHouse/src/Storages/System/StorageSystemTimeZones.cpp
Alexey Milovidov c8f8a23c71 Fix errors
2023-07-23 06:11:03 +02:00

24 lines
509 B
C++

#include "StorageSystemTimeZones.h"
#include <algorithm>
#include <DataTypes/DataTypeString.h>
extern const char * auto_time_zones[];
namespace DB
{
NamesAndTypesList StorageSystemTimeZones::getNamesAndTypes()
{
return {
{"time_zone", std::make_shared<DataTypeString>()},
};
}
void StorageSystemTimeZones::fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const
{
for (auto * it = auto_time_zones; *it; ++it)
res_columns[0]->insert(String(*it));
}
}