mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Remove noexcept since std::string constructor may throw
This commit is contained in:
parent
670d710f62
commit
697929cfbe
@ -111,7 +111,7 @@ public:
|
|||||||
*
|
*
|
||||||
* Note this correctly handles strings that contain null bytes.
|
* Note this correctly handles strings that contain null bytes.
|
||||||
*/
|
*/
|
||||||
std::string getString() const noexcept; // nothrow
|
std::string getString() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Return the type of the value of the column
|
* @brief Return the type of the value of the column
|
||||||
|
@ -90,7 +90,7 @@ const void* Column::getBlob() const noexcept // nothrow
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Return a std::string to a TEXT or BLOB column
|
// Return a std::string to a TEXT or BLOB column
|
||||||
std::string Column::getString() const noexcept // nothrow
|
std::string Column::getString() const
|
||||||
{
|
{
|
||||||
// Note: using sqlite3_column_blob and not sqlite3_column_text
|
// Note: using sqlite3_column_blob and not sqlite3_column_text
|
||||||
// - no need for sqlite3_column_text to add a \0 on the end, as we're getting the bytes length directly
|
// - no need for sqlite3_column_text to add a \0 on the end, as we're getting the bytes length directly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user