Start a new 3.x branch requiring C++11 and CMake 3.1

- Remove support for Visual Studio < 2015
- Remove Statement::isOk() deprecated in 2.2.0 and renamed to Statement::hasRow()
This commit is contained in:
Sébastien Rombauts
2019-12-26 18:47:06 +01:00
parent 8e0bd6b3fe
commit da4d692c13
20 changed files with 341 additions and 532 deletions

View File

@@ -16,19 +16,6 @@
namespace SQLite
{
Exception::Exception(const char* aErrorMessage) :
std::runtime_error(aErrorMessage),
mErrcode(-1), // 0 would be SQLITE_OK, which doesn't make sense
mExtendedErrcode(-1)
{
}
Exception::Exception(const std::string& aErrorMessage) :
std::runtime_error(aErrorMessage),
mErrcode(-1), // 0 would be SQLITE_OK, which doesn't make sense
mExtendedErrcode(-1)
{
}
Exception::Exception(const char* aErrorMessage, int ret) :
std::runtime_error(aErrorMessage),
mErrcode(ret),
@@ -36,13 +23,6 @@ Exception::Exception(const char* aErrorMessage, int ret) :
{
}
Exception::Exception(const std::string& aErrorMessage, int ret) :
std::runtime_error(aErrorMessage),
mErrcode(ret),
mExtendedErrcode(-1)
{
}
Exception::Exception(sqlite3* apSQLite) :
std::runtime_error(sqlite3_errmsg(apSQLite)),
mErrcode(sqlite3_errcode(apSQLite)),
@@ -58,7 +38,7 @@ Exception::Exception(sqlite3* apSQLite, int ret) :
}
// Return a string, solely based on the error code
const char* Exception::getErrorStr() const noexcept // nothrow
const char* Exception::getErrorStr() const noexcept
{
return sqlite3_errstr(mErrcode);
}