From 3bfa3dafe335479aade55507719071f7dceb0d8c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Nov 2020 16:55:18 +0000 Subject: Clang format --- libpqpp/pq-bulkselectcommand.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'libpqpp/pq-bulkselectcommand.cpp') diff --git a/libpqpp/pq-bulkselectcommand.cpp b/libpqpp/pq-bulkselectcommand.cpp index c098aad..ff9f2f4 100644 --- a/libpqpp/pq-bulkselectcommand.cpp +++ b/libpqpp/pq-bulkselectcommand.cpp @@ -1,13 +1,12 @@ #include "pq-bulkselectcommand.h" -#include "pq-connection.h" #include "pq-column.h" +#include "pq-connection.h" #include "pq-error.h" -PQ::BulkSelectCommand::BulkSelectCommand(Connection * conn, const std::string & sql, const PQ::CommandOptionsCPtr & pqco, const DB::CommandOptionsCPtr & opts) : +PQ::BulkSelectCommand::BulkSelectCommand(Connection * conn, const std::string & sql, + const PQ::CommandOptionsCPtr & pqco, const DB::CommandOptionsCPtr & opts) : DB::Command(sql), - PQ::SelectBase(sql, pqco), - PQ::PreparedStatement(conn, sql, opts), - executed(false) + PQ::SelectBase(sql, pqco), PQ::PreparedStatement(conn, sql, opts), executed(false) { } @@ -15,8 +14,8 @@ void PQ::BulkSelectCommand::execute() { if (!executed) { - execRes = c->checkResult( - PQexecPrepared(c->conn, prepare(), values.size(), &values.front(), &lengths.front(), &formats.front(), binary), + execRes = c->checkResult(PQexecPrepared(c->conn, prepare(), values.size(), &values.front(), &lengths.front(), + &formats.front(), binary), PGRES_TUPLES_OK); nTuples = PQntuples(execRes); tuple = -1; @@ -39,4 +38,3 @@ PQ::BulkSelectCommand::fetch() return false; } } - -- cgit v1.2.3