Fixed bug after merge [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-03-08 00:32:35 +03:00
parent e41e2fe613
commit 3a5754944e
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ ClickHouseDictionarySource::ClickHouseDictionarySource(
db{config.getString(config_prefix + ".db", "")},
table{config.getString(config_prefix + ".table")},
where{config.getString(config_prefix + ".where", "")},
update_field{config.getString(config_prefix + ".update_field")},
update_field{config.getString(config_prefix + ".update_field", "")},
query_builder{dict_struct, db, table, where, ExternalQueryBuilder::Backticks},
sample_block{sample_block}, context(context),
is_local{isLocalAddress({ host, port }, config.getInt("tcp_port", 0))},

View File

@ -30,7 +30,7 @@ MySQLDictionarySource::MySQLDictionarySource(const DictionaryStructure & dict_st
db{config.getString(config_prefix + ".db", "")},
table{config.getString(config_prefix + ".table")},
where{config.getString(config_prefix + ".where", "")},
update_field{config.getString(config_prefix + ".update_field")},
update_field{config.getString(config_prefix + ".update_field", "")},
dont_check_update_time{config.getBool(config_prefix + ".dont_check_update_time", false)},
sample_block{sample_block},
pool{config, config_prefix},

View File

@ -25,7 +25,7 @@ ODBCDictionarySource::ODBCDictionarySource(const DictionaryStructure & dict_stru
db{config.getString(config_prefix + ".db", "")},
table{config.getString(config_prefix + ".table")},
where{config.getString(config_prefix + ".where", "")},
update_field{config.getString(config_prefix + ".update_field")},
update_field{config.getString(config_prefix + ".update_field", "")},
sample_block{sample_block},
query_builder{dict_struct, db, table, where, ExternalQueryBuilder::None}, /// NOTE Better to obtain quoting style via ODBC interface.
load_all_query{query_builder.composeLoadAllQuery()},