diff --git a/programs/odbc-bridge/ODBCConnectionFactory.h b/programs/odbc-bridge/ODBCConnectionFactory.h index e1cdf1f09bb..773b65eb27d 100644 --- a/programs/odbc-bridge/ODBCConnectionFactory.h +++ b/programs/odbc-bridge/ODBCConnectionFactory.h @@ -6,6 +6,7 @@ #include #include + namespace DB { namespace ErrorCodes @@ -28,8 +29,8 @@ class ConnectionHolder { public: ConnectionHolder(PoolPtr pool_, - ConnectionPtr connection_, - const String & connection_string_) + ConnectionPtr connection_, + const String & connection_string_) : pool(pool_) , connection(std::move(connection_)) , connection_string(connection_string_) @@ -57,7 +58,7 @@ public: private: PoolPtr pool; ConnectionPtr connection; - const String & connection_string; + String connection_string; }; using ConnectionHolderPtr = std::shared_ptr;