summaryrefslogtreecommitdiff
path: root/libpqpp/pq-selectbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-selectbase.cpp')
-rw-r--r--libpqpp/pq-selectbase.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpqpp/pq-selectbase.cpp b/libpqpp/pq-selectbase.cpp
index 0950d37..93dee50 100644
--- a/libpqpp/pq-selectbase.cpp
+++ b/libpqpp/pq-selectbase.cpp
@@ -25,10 +25,12 @@ PQ::SelectBase::createColumns(PGresult * execRes)
{
unsigned int nFields = PQnfields(execRes);
for (unsigned int f = 0; f < nFields; f += 1) {
- if (binary)
+ if (binary) {
insertColumn(std::make_unique<BinaryColumn>(this, f));
- else
+ }
+ else {
insertColumn(std::make_unique<Column>(this, f));
+ }
}
}