Add unit tests for the new Column getter and cast operator

This commit is contained in:
Sébastien Rombauts
2016-07-06 09:02:25 +02:00
parent 646d25ca95
commit b033abb3fd
3 changed files with 31 additions and 13 deletions

View File

@@ -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
{