Commit 249c7be7 authored by Francis Dupont's avatar Francis Dupont

[354-compilation-with-mysql-fails-on-fedora-29] Simplified patch

parent b53bba76
......@@ -68,17 +68,10 @@ MySqlConfigBackendImpl(const DatabaseConnection::ParameterMap& parameters)
// caused issues for some unit tests which were unable to cleanup
// the database after the test because of pending transactions.
// Use of autocommit will eliminate this problem.
#ifdef HAVE_MYSQL_MY_BOOL
my_bool result = mysql_autocommit(conn_.mysql_, 1);
if (result != 0) {
if (result != MLM_FALSE) {
isc_throw(DbOperationError, mysql_error(conn_.mysql_));
}
#else
bool result = mysql_autocommit(conn_.mysql_, 1);
if (!result) {
isc_throw(DbOperationError, mysql_error(conn_.mysql_));
}
#endif
}
MySqlConfigBackendImpl::~MySqlConfigBackendImpl() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment