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-binarycolumn.cpp | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'libpqpp/pq-binarycolumn.cpp') diff --git a/libpqpp/pq-binarycolumn.cpp b/libpqpp/pq-binarycolumn.cpp index 1c6f9e2..1e75343 100644 --- a/libpqpp/pq-binarycolumn.cpp +++ b/libpqpp/pq-binarycolumn.cpp @@ -2,10 +2,7 @@ #include "pq-selectbase.h" #include -PQ::BinaryColumn::BinaryColumn(const PQ::SelectBase * s, unsigned int f) : - PQ::Column(s, f) -{ -} +PQ::BinaryColumn::BinaryColumn(const PQ::SelectBase * s, unsigned int f) : PQ::Column(s, f) { } void PQ::BinaryColumn::apply(DB::HandleField & h) const @@ -15,29 +12,28 @@ PQ::BinaryColumn::apply(DB::HandleField & h) const return; } switch (oid) { - case 18: //CHAROID: - case 1043: //VARCHAROID: - case 25: //TEXTOID: - case 142: //XMLOID: - h.string({ value(), length() }); + case 18: // CHAROID: + case 1043: // VARCHAROID: + case 25: // TEXTOID: + case 142: // XMLOID: + h.string({value(), length()}); break; - case 16: //BOOLOID: + case 16: // BOOLOID: h.boolean(valueAs()); break; - case 21: //INT2OID: + case 21: // INT2OID: h.integer(be16toh(valueAs())); break; - case 23: //INT4OID: + case 23: // INT4OID: h.integer(be32toh(valueAs())); break; - case 20: //INT8OID: + case 20: // INT8OID: h.integer(be64toh(valueAs())); break; - case 17: //BYTEAOID + case 17: // BYTEAOID h.blob(DB::Blob(value(), length())); break; default: throw DB::ColumnTypeNotSupported(); } } - -- cgit v1.2.3