From 04a48547c11c73349d42d485df0bdec38f3cfc3a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 28 Jan 2019 19:30:56 +0000 Subject: Don't rely on libdbppcore's columns --- libsqlitepp/sqlite-selectcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(sqlite3_column_name(stmt, c), c, stmt)); } -- cgit v1.2.3