From 3da79997cc80186051a0571b02b1619e76e96e2f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 3 Jan 2017 14:42:50 +0000 Subject: Co-variant return of PQ connection from PQ mock --- libpqpp/pq-mock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpqpp/pq-mock.h') diff --git a/libpqpp/pq-mock.h b/libpqpp/pq-mock.h index 0081c5a..f712ef6 100644 --- a/libpqpp/pq-mock.h +++ b/libpqpp/pq-mock.h @@ -4,6 +4,7 @@ #include #include #include +#include "pq-connection.h" namespace PQ { class DLL_PUBLIC Mock : public DB::MockServerDatabase { @@ -11,7 +12,7 @@ namespace PQ { Mock(const std::string & master, const std::string & name, const std::vector & ss); ~Mock(); - DB::Connection * openConnection() const override; + PQ::Connection * openConnection() const override; protected: void DropDatabase() const override; -- cgit v1.2.3