]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1380] use my_bool type
authorRazvan Becheriu <razvan@isc.org>
Fri, 14 Aug 2020 09:55:17 +0000 (12:55 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 14 Aug 2020 09:55:17 +0000 (12:55 +0300)
src/lib/mysql/mysql_connection.cc

index 6fea2a185f8c6e96e5e319b39c2de767edfd3c79..ce9a1086c87176926dba4924bc8ba552e21e7112 100644 (file)
@@ -218,8 +218,8 @@ MySqlConnection::openDatabase() {
     // 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.
-    result = mysql_autocommit(mysql_, 1);
-    if (result != 0) {
+    my_bool autocommit_result = mysql_autocommit(mysql_, 1);
+    if (autocommit_result != 0) {
         isc_throw(DbOperationError, mysql_error(mysql_));
     }