summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-09-22 15:37:40 +0200
committerlouiz’ <louiz@louiz.org>2019-09-27 20:57:30 +0200
commit06abd6e69ac79412fe37f51fb0bf977f0ddd3eb1 (patch)
treee4d62dadb814b0164cf86160cdf0bbc8ef9fa550
parentd839792f60870c2106f79bba8d15655d7cdb837f (diff)
downloadbiboumi-06abd6e69ac79412fe37f51fb0bf977f0ddd3eb1.tar.gz
biboumi-06abd6e69ac79412fe37f51fb0bf977f0ddd3eb1.tar.bz2
biboumi-06abd6e69ac79412fe37f51fb0bf977f0ddd3eb1.tar.xz
biboumi-06abd6e69ac79412fe37f51fb0bf977f0ddd3eb1.zip
Add a missing "virtual", and remove a trivial "private" redundancy
-rw-r--r--src/database/postgresql_statement.hpp4
1 files changed, 1 insertions, 3 deletions
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)
{