blob: dc3711812a68ce3b878bf24cc10cd38a5491cade (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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));
}
}
|