mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #10809 from Enmk/DateLUTImpl_ctor_fix
Fixed DateLUTImpl constructors to avoid accidental copying
This commit is contained in:
commit
61496384b6
@ -37,7 +37,12 @@ using YearWeek = std::pair<UInt16, UInt8>;
|
||||
class DateLUTImpl
|
||||
{
|
||||
public:
|
||||
DateLUTImpl(const std::string & time_zone);
|
||||
explicit DateLUTImpl(const std::string & time_zone);
|
||||
|
||||
DateLUTImpl(const DateLUTImpl &) = delete;
|
||||
DateLUTImpl & operator=(const DateLUTImpl &) = delete;
|
||||
DateLUTImpl(const DateLUTImpl &&) = delete;
|
||||
DateLUTImpl & operator=(const DateLUTImpl &&) = delete;
|
||||
|
||||
public:
|
||||
/// The order of fields matters for alignment and sizeof.
|
||||
|
@ -45,7 +45,7 @@ private:
|
||||
|
||||
size_t rows_removed = 0;
|
||||
Logger * log;
|
||||
DateLUTImpl date_lut;
|
||||
const DateLUTImpl & date_lut;
|
||||
|
||||
/// TODO rewrite defaults logic to evaluteMissingDefaults
|
||||
std::unordered_map<String, String> defaults_result_column;
|
||||
|
Loading…
Reference in New Issue
Block a user