diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 23:11:42 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 23:11:42 +0100 |
commit | ed78baff64fe45479ca6c480d985ce0f9c0c9515 (patch) | |
tree | b3224d0d01dc0c563c8e49751c628994b66f58b6 /frontend/DB.cpp | |
parent | 07b8a5b0baed8c7b23681c99f25f297045945bfc (diff) |
more bug fixes
Diffstat (limited to 'frontend/DB.cpp')
-rw-r--r-- | frontend/DB.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/DB.cpp b/frontend/DB.cpp index 0f52433..1c8ab41 100644 --- a/frontend/DB.cpp +++ b/frontend/DB.cpp @@ -98,6 +98,15 @@ int DBQueryRow::col<int>(int index) const { return this->col<int>(index, 0); } +template <> +unsigned int DBQueryRow::col<unsigned int>(int index, const unsigned int & default_value) const { + return this->col<int>(index, default_value); +} +template <> +unsigned int DBQueryRow::col<unsigned int>(int index) const { + return this->col<unsigned int>(index, 0); +} + DBQueryRowRange DBStatement::rows() { return { *this }; } |