From 18dcb031368fb491816dc59c3d29d8775b254be0 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Tue, 26 Mar 2024 15:55:49 +0300 Subject: [PATCH] UI: SqliteStmt: Add columnUInt64() --- src/ui/3rdparty/sqlite/sqlitestmt.cpp | 5 +++++ src/ui/3rdparty/sqlite/sqlitestmt.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/ui/3rdparty/sqlite/sqlitestmt.cpp b/src/ui/3rdparty/sqlite/sqlitestmt.cpp index fee80415..264f076e 100644 --- a/src/ui/3rdparty/sqlite/sqlitestmt.cpp +++ b/src/ui/3rdparty/sqlite/sqlitestmt.cpp @@ -288,6 +288,11 @@ qint64 SqliteStmt::columnInt64(int column) const return sqlite3_column_int64(m_stmt, column); } +quint64 SqliteStmt::columnUInt64(int column) const +{ + return quint64(columnInt64(column)); +} + double SqliteStmt::columnDouble(int column) const { return sqlite3_column_double(m_stmt, column); diff --git a/src/ui/3rdparty/sqlite/sqlitestmt.h b/src/ui/3rdparty/sqlite/sqlitestmt.h index a5e1c23f..0d9ab299 100644 --- a/src/ui/3rdparty/sqlite/sqlitestmt.h +++ b/src/ui/3rdparty/sqlite/sqlitestmt.h @@ -62,6 +62,7 @@ public: qint32 columnInt(int column = 0) const; quint32 columnUInt(int column = 0) const; qint64 columnInt64(int column = 0) const; + quint64 columnUInt64(int column = 0) const; double columnDouble(int column = 0) const; bool columnBool(int column = 0) const; QString columnText(int column = 0) const;