mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Reload client connection params before reconnection. #2580
This commit is contained in:
parent
9845814701
commit
323578c8b6
@ -374,7 +374,6 @@ private:
|
|||||||
echo_queries = config().getBool("echo", false);
|
echo_queries = config().getBool("echo", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
connection_parameters = ConnectionParameters(config());
|
|
||||||
connect();
|
connect();
|
||||||
|
|
||||||
/// Initialize DateLUT here to avoid counting time spent here as query execution time.
|
/// Initialize DateLUT here to avoid counting time spent here as query execution time.
|
||||||
@ -492,6 +491,8 @@ private:
|
|||||||
|
|
||||||
void connect()
|
void connect()
|
||||||
{
|
{
|
||||||
|
connection_parameters = ConnectionParameters(config());
|
||||||
|
|
||||||
if (is_interactive)
|
if (is_interactive)
|
||||||
std::cout << "Connecting to "
|
std::cout << "Connecting to "
|
||||||
<< (!connection_parameters.default_database.empty() ? "database " + connection_parameters.default_database + " at " : "")
|
<< (!connection_parameters.default_database.empty() ? "database " + connection_parameters.default_database + " at " : "")
|
||||||
|
Loading…
Reference in New Issue
Block a user