From c2a18bf418dd3e2d10405e15cbb2b0d42cc00f44 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 17 Apr 2020 17:40:39 +0300 Subject: [PATCH] Fix build. --- programs/odbc-bridge/ColumnInfoHandler.h | 4 ++-- programs/odbc-bridge/IdentifierQuoteHandler.h | 4 ++-- programs/odbc-bridge/MainHandler.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/programs/odbc-bridge/ColumnInfoHandler.h b/programs/odbc-bridge/ColumnInfoHandler.h index 426cea15b34..e1a5ad33b32 100644 --- a/programs/odbc-bridge/ColumnInfoHandler.h +++ b/programs/odbc-bridge/ColumnInfoHandler.h @@ -14,7 +14,7 @@ namespace DB class ODBCColumnsInfoHandler : public Poco::Net::HTTPRequestHandler { public: - ODBCColumnsInfoHandler(size_t keep_alive_timeout_, std::shared_ptr context_) + ODBCColumnsInfoHandler(size_t keep_alive_timeout_, Context & context_) : log(&Poco::Logger::get("ODBCColumnsInfoHandler")), keep_alive_timeout(keep_alive_timeout_), context(context_) { } @@ -24,7 +24,7 @@ public: private: Poco::Logger * log; size_t keep_alive_timeout; - std::shared_ptr context; + Context & context; }; } #endif diff --git a/programs/odbc-bridge/IdentifierQuoteHandler.h b/programs/odbc-bridge/IdentifierQuoteHandler.h index 2d4cf0277be..9704703fe93 100644 --- a/programs/odbc-bridge/IdentifierQuoteHandler.h +++ b/programs/odbc-bridge/IdentifierQuoteHandler.h @@ -12,7 +12,7 @@ namespace DB class IdentifierQuoteHandler : public Poco::Net::HTTPRequestHandler { public: - IdentifierQuoteHandler(size_t keep_alive_timeout_, std::shared_ptr context_) + IdentifierQuoteHandler(size_t keep_alive_timeout_, Context & context_) : log(&Poco::Logger::get("IdentifierQuoteHandler")), keep_alive_timeout(keep_alive_timeout_), context(context_) { } @@ -22,7 +22,7 @@ public: private: Poco::Logger * log; size_t keep_alive_timeout; - std::shared_ptr context; + Context & context; }; } #endif diff --git a/programs/odbc-bridge/MainHandler.h b/programs/odbc-bridge/MainHandler.h index ae139f393f8..806313fc9b2 100644 --- a/programs/odbc-bridge/MainHandler.h +++ b/programs/odbc-bridge/MainHandler.h @@ -24,7 +24,7 @@ public: ODBCHandler(std::shared_ptr pool_map_, size_t keep_alive_timeout_, - std::shared_ptr context_) + Context & context_) : log(&Poco::Logger::get("ODBCHandler")) , pool_map(pool_map_) , keep_alive_timeout(keep_alive_timeout_) @@ -39,7 +39,7 @@ private: std::shared_ptr pool_map; size_t keep_alive_timeout; - std::shared_ptr context; + Context & context; static inline std::mutex mutex;