Description: Fix my_bool type conflict with MariaDB
 Only define "typedef bool my_bool" when MARIADB_VERSION_ID is not
 defined. MariaDB's mysql.h already provides "typedef char my_bool",
 so the unconditional typedef reintroduced by mysql8_my_bool.patch
 (made for MySQL 8, which dropped my_bool) conflicts with MariaDB headers.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: no
Last-Update: 2026-09-05

--- tntdb-1.4.orig/include/tntdb/mysql/bindvalues.h
+++ tntdb-1.4/include/tntdb/mysql/bindvalues.h
@@ -30,7 +30,9 @@
 #define TNTDB_MYSQL_BINDVALUES_H
 
 #include <mysql.h>
+#ifndef MARIADB_VERSION_ID
 typedef bool my_bool;
+#endif
 #include <string>
 #include <tntdb/decimal.h>
 #include <tntdb/mysql/bindutils.h>
