forked from qt-creator/qt-creator
Sqlite: Cleanup error handling in sqlite statement
We mixed result code and error handling which is now separated. Change-Id: Ibb9c5f0eb3b77c350eac67884d377ba1baaf76c6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -97,9 +97,10 @@ public:
|
||||
sqlite3 *sqliteDatabaseHandle() const;
|
||||
TextEncoding databaseTextEncoding();
|
||||
|
||||
bool checkForStepError(int resultCode) const;
|
||||
void checkForPrepareError(int resultCode) const;
|
||||
void checkForBindingError(int resultCode) const;
|
||||
[[noreturn]] void checkForStepError(int resultCode) const;
|
||||
[[noreturn]] void checkForResetError(int resultCode) const;
|
||||
[[noreturn]] void checkForPrepareError(int resultCode) const;
|
||||
[[noreturn]] void checkForBindingError(int resultCode) const;
|
||||
void setIfIsReadyToFetchValues(int resultCode) const;
|
||||
void checkIfIsReadyToFetchValues() const;
|
||||
void checkColumnsAreValid(const std::vector<int> &columns) const;
|
||||
|
||||
Reference in New Issue
Block a user