diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-24 13:06:07 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-24 13:09:28 +0000 |
commit | ab47c39c82abee7f0e0cff981dc352fdc310a6fe (patch) | |
tree | 238979d93b5c4c810c130367fcaccdfacf420b9b /libsqlitepp/sqlite-selectcommand.cpp | |
parent | Don't rely on libdbppcore's columns (diff) | |
download | libdbpp-sqlite-ab47c39c82abee7f0e0cff981dc352fdc310a6fe.tar.bz2 libdbpp-sqlite-ab47c39c82abee7f0e0cff981dc352fdc310a6fe.tar.xz libdbpp-sqlite-ab47c39c82abee7f0e0cff981dc352fdc310a6fe.zip |
Bring up-to-date with libdbpp.
Diffstat (limited to 'libsqlitepp/sqlite-selectcommand.cpp')
-rw-r--r-- | libsqlitepp/sqlite-selectcommand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp index 67e90ba..909dc5c 100644 --- a/libsqlitepp/sqlite-selectcommand.cpp +++ b/libsqlitepp/sqlite-selectcommand.cpp @@ -30,7 +30,7 @@ namespace SQLite { { auto t = sqlite3_column_text(stmt, colNo); auto l = sqlite3_column_bytes(stmt, colNo); - h.string(reinterpret_cast<const char *>(t), l); + h.string({ reinterpret_cast<const char *>(t), (std::size_t)l }); return; } case SQLITE_NULL: @@ -66,7 +66,7 @@ SQLite::SelectCommand::fetch() case SQLITE_ROW: 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)); + insertColumn(std::make_unique<Column>(sqlite3_column_name(stmt, c), c, stmt)); } } return true; |