mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-05 10:16:01 -04:00
Use sqlite_errstr instead of sqlite3_errmsg
mpSQLite is free'd with sqlite3_close. It's no more accesible. Fixes: #48
This commit is contained in:
parent
4f4c9aa918
commit
e55fffefd7
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user