diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 16:55:18 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 16:55:18 +0000 |
commit | 3bfa3dafe335479aade55507719071f7dceb0d8c (patch) | |
tree | 31d14618fc170a16f91f1f5c79e2ffd25f11b541 /libpqpp/pq-prepared.cpp | |
parent | Fixes for tidy (diff) | |
download | libdbpp-postgresql-3bfa3dafe335479aade55507719071f7dceb0d8c.tar.bz2 libdbpp-postgresql-3bfa3dafe335479aade55507719071f7dceb0d8c.tar.xz libdbpp-postgresql-3bfa3dafe335479aade55507719071f7dceb0d8c.zip |
Clang format
Diffstat (limited to 'libpqpp/pq-prepared.cpp')
-rw-r--r-- | libpqpp/pq-prepared.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libpqpp/pq-prepared.cpp b/libpqpp/pq-prepared.cpp index 3162349..287eda8 100644 --- a/libpqpp/pq-prepared.cpp +++ b/libpqpp/pq-prepared.cpp @@ -2,9 +2,7 @@ #include "pq-connection.h" PQ::PreparedStatement::PreparedStatement(Connection * c, const std::string & sql, const DB::CommandOptionsCPtr & opts) : - DB::Command(sql), - Command(c, sql, opts), - pstmt(nullptr) + DB::Command(sql), Command(c, sql, opts), pstmt(nullptr) { } @@ -20,8 +18,7 @@ PQ::PreparedStatement::prepare() const } std::stringstream psql; prepareSql(psql, sql); - c->checkResultFree(PQprepare( - c->conn, stmntName.c_str(), psql.str().c_str(), values.size(), nullptr), PGRES_COMMAND_OK); + c->checkResultFree( + PQprepare(c->conn, stmntName.c_str(), psql.str().c_str(), values.size(), nullptr), PGRES_COMMAND_OK); return (pstmt = c->preparedStatements.insert({hash, stmntName}).first->second.c_str()); } - |