mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-01 17:09:55 +00:00
Merge pull request #49 from onuraslan/fix-48
Use sqlite_errstr instead of sqlite3_errmsg
This commit is contained in:
@@ -74,7 +74,7 @@ Database::~Database() noexcept // nothrow
|
||||
{
|
||||
const int ret = sqlite3_close(mpSQLite);
|
||||
// Never throw an exception in a destructor
|
||||
SQLITECPP_ASSERT(SQLITE_OK == ret, sqlite3_errmsg(mpSQLite)); // See SQLITECPP_ENABLE_ASSERT_HANDLER
|
||||
SQLITECPP_ASSERT(SQLITE_OK == ret, sqlite3_errstr(ret)); // See SQLITECPP_ENABLE_ASSERT_HANDLER
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user