summaryrefslogtreecommitdiff
path: root/src/database/row.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/row.hpp')
-rw-r--r--src/database/row.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/row.hpp b/src/database/row.hpp
index ca686c1..b6887cb 100644
--- a/src/database/row.hpp
+++ b/src/database/row.hpp
@@ -20,7 +20,7 @@ update_id(std::tuple<T...>& columns, sqlite3* db)
log_debug("Found an autoincrement col.");
auto res = sqlite3_last_insert_rowid(db);
log_debug("Value is now: ", res);
- column.value = res;
+ column.value = static_cast<Id::real_type>(res);
}
template <std::size_t N, typename... T>