mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Tiny fix
This commit is contained in:
parent
e3fac9ef32
commit
7c162d30b7
@ -24,12 +24,13 @@ public:
|
||||
|
||||
~ConnectionHolder()
|
||||
{
|
||||
pool->returnObject(std::move(connection));
|
||||
if (connection)
|
||||
pool->returnObject(std::move(connection));
|
||||
}
|
||||
|
||||
nanodbc::connection & operator*()
|
||||
{
|
||||
if (!connection || !connection->connected())
|
||||
if (!connection)
|
||||
{
|
||||
pool->borrowObject(connection, [&]()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user