mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
495c6e03aa
* Replace all Context references with std::weak_ptr * Fix shared context captured by value * Fix build * Fix Context with named sessions * Fix copy context * Fix gcc build * Merge with master and fix build * Fix gcc-9 build
24 lines
509 B
C++
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));
|
|
}
|
|
}
|