From 06abd6e69ac79412fe37f51fb0bf977f0ddd3eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 22 Sep 2019 15:37:40 +0200 Subject: Add a missing "virtual", and remove a trivial "private" redundancy --- src/database/postgresql_statement.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/database') diff --git a/src/database/postgresql_statement.hpp b/src/database/postgresql_statement.hpp index 37e8ea0..2dc7d7c 100644 --- a/src/database/postgresql_statement.hpp +++ b/src/database/postgresql_statement.hpp @@ -15,7 +15,7 @@ class PostgresqlStatement: public Statement body(std::move(body)), conn(conn) {} - ~PostgresqlStatement() + virtual ~PostgresqlStatement() { PQclear(this->result); this->result = nullptr; @@ -89,8 +89,6 @@ class PostgresqlStatement: public Statement return true; } - private: - private: bool execute(const bool second_attempt=false) { -- cgit v1.2.3