summaryrefslogtreecommitdiff
path: root/libpqpp/pq-mock.h
diff options
context:
space:
mode:
authorDan Goodliffe <daniel.goodliffe@pressassociation.com>2017-01-03 14:42:50 +0000
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2017-01-03 14:42:50 +0000
commit66a3a93650c17f3596ba2af8493d58349989a6a3 (patch)
tree4a53193860b27447930b15b9839bc609e4ef6841 /libpqpp/pq-mock.h
parentAdd function for retrieving server version number (diff)
downloadlibdbpp-postgresql-66a3a93650c17f3596ba2af8493d58349989a6a3.tar.bz2
libdbpp-postgresql-66a3a93650c17f3596ba2af8493d58349989a6a3.tar.xz
libdbpp-postgresql-66a3a93650c17f3596ba2af8493d58349989a6a3.zip
Co-variant return of PQ connection from PQ mock
Diffstat (limited to 'libpqpp/pq-mock.h')
-rw-r--r--libpqpp/pq-mock.h3
1 files changed, 2 insertions, 1 deletions
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 <mockDatabase.h>
#include <boost/filesystem/path.hpp>
#include <visibility.h>
+#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<boost::filesystem::path> & ss);
~Mock();
- DB::Connection * openConnection() const override;
+ PQ::Connection * openConnection() const override;
protected:
void DropDatabase() const override;