From d77f801dc01c5e30c0d96e907c8ac14f23d7b630 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Nov 2020 16:54:48 +0000 Subject: Clang format --- libmysqlpp/my-selectcommand.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'libmysqlpp/my-selectcommand.cpp') diff --git a/libmysqlpp/my-selectcommand.cpp b/libmysqlpp/my-selectcommand.cpp index bb7ca10..2bf336f 100644 --- a/libmysqlpp/my-selectcommand.cpp +++ b/libmysqlpp/my-selectcommand.cpp @@ -1,15 +1,11 @@ #include "my-selectcommand.h" -#include "my-connection.h" #include "my-column.h" +#include "my-connection.h" #include "my-error.h" #include MySQL::SelectCommand::SelectCommand(const Connection * conn, const std::string & sql) : - DB::Command(sql), - DB::SelectCommand(sql), - MySQL::Command(conn, sql), - prepared(false), - executed(false) + DB::Command(sql), DB::SelectCommand(sql), MySQL::Command(conn, sql), prepared(false), executed(false) { } @@ -32,7 +28,8 @@ MySQL::SelectCommand::execute() case MYSQL_TYPE_INT24: case MYSQL_TYPE_LONGLONG: case MYSQL_TYPE_YEAR: - insertColumn(std::make_unique>(fieldDefs[i].name, i, &fields[i])); + insertColumn( + std::make_unique>(fieldDefs[i].name, i, &fields[i])); break; case MYSQL_TYPE_DECIMAL: case MYSQL_TYPE_NEWDECIMAL: @@ -43,10 +40,12 @@ MySQL::SelectCommand::execute() case MYSQL_TYPE_TIMESTAMP: case MYSQL_TYPE_DATE: case MYSQL_TYPE_DATETIME: - insertColumn(std::make_unique>(fieldDefs[i].name, i, &fields[i])); + insertColumn(std::make_unique>( + fieldDefs[i].name, i, &fields[i])); break; case MYSQL_TYPE_TIME: - insertColumn(std::make_unique>(fieldDefs[i].name, i, &fields[i])); + insertColumn( + std::make_unique>(fieldDefs[i].name, i, &fields[i])); break; case MYSQL_TYPE_STRING: case MYSQL_TYPE_VAR_STRING: @@ -96,4 +95,3 @@ MySQL::SelectCommand::fetch() throw Error(stmt); } } - -- cgit v1.2.3