summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpqpp/selectcommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/selectcommand.cpp b/libpqpp/selectcommand.cpp
index afb8c1b..8e3ec36 100644
--- a/libpqpp/selectcommand.cpp
+++ b/libpqpp/selectcommand.cpp
@@ -89,7 +89,7 @@ PQ::SelectCommand::execute()
fetchTuples();
unsigned int nFields = PQnfields(execRes);
for (unsigned int f = 0; f < nFields; f += 1) {
- columns.insert(DB::ColumnPtr(new Column(this, f)));
+ insertColumn(DB::ColumnPtr(new Column(this, f)));
}
executed = true;
}