summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-selectcommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-28 19:30:56 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-28 19:30:56 +0000
commit04a48547c11c73349d42d485df0bdec38f3cfc3a (patch)
treebd027109ecfa5a2d158476a14c4fdd7679be1e68 /libsqlitepp/sqlite-selectcommand.cpp
parentUpdate to new PluginMock interface (diff)
downloadlibdbpp-sqlite-04a48547c11c73349d42d485df0bdec38f3cfc3a.tar.bz2
libdbpp-sqlite-04a48547c11c73349d42d485df0bdec38f3cfc3a.tar.xz
libdbpp-sqlite-04a48547c11c73349d42d485df0bdec38f3cfc3a.zip
Don't rely on libdbppcore's columns
Diffstat (limited to 'libsqlitepp/sqlite-selectcommand.cpp')
-rw-r--r--libsqlitepp/sqlite-selectcommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp
index a65cbd1..67e90ba 100644
--- a/libsqlitepp/sqlite-selectcommand.cpp
+++ b/libsqlitepp/sqlite-selectcommand.cpp
@@ -64,7 +64,7 @@ SQLite::SelectCommand::fetch()
{
switch (sqlite3_step(stmt)) {
case SQLITE_ROW:
- if (columns->empty()) {
+ if (!columnCount()) {
for (int c = sqlite3_data_count(stmt) - 1; c >= 0; c -= 1) {
insertColumn(std::make_shared<Column>(sqlite3_column_name(stmt, c), c, stmt));
}