Merge pull request #49 from onuraslan/fix-48

Use sqlite_errstr instead of sqlite3_errmsg
This commit is contained in:
Sébastien Rombauts 2015-05-06 04:05:54 +02:00
commit 3ffc07b1c2

View File

@ -74,7 +74,7 @@ Database::~Database() noexcept // nothrow
{ {
const int ret = sqlite3_close(mpSQLite); const int ret = sqlite3_close(mpSQLite);
// Never throw an exception in a destructor // 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
} }
/** /**