mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-01 01:07:39 +00:00
Add unit tests for the new Column getter and cast operator
This commit is contained in:
@@ -49,6 +49,12 @@ int Column::getInt() const noexcept // nothrow
|
||||
return sqlite3_column_int(mStmtPtr, mIndex);
|
||||
}
|
||||
|
||||
// Return the unsigned integer value of the column specified by its index starting at 0
|
||||
uint32_t Column::getUInt() const noexcept // nothrow
|
||||
{
|
||||
return static_cast<uint32_t>(getInt64());
|
||||
}
|
||||
|
||||
// Return the 64bits integer value of the column specified by its index starting at 0
|
||||
int64_t Column::getInt64() const noexcept // nothrow
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user