summaryrefslogtreecommitdiff
path: root/src/database/postgresql_statement.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/postgresql_statement.hpp')
-rw-r--r--src/database/postgresql_statement.hpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/database/postgresql_statement.hpp b/src/database/postgresql_statement.hpp
index 37e8ea0..345a942 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)
{
@@ -119,11 +117,7 @@ private:
PQreset(this->conn);
return this->execute(true);
}
- else
- {
- log_error("Givin up.");
- return false;
- }
+ return false;
}
return true;
}