浏览代码

HPCC-23431 my_bool is not supported in MySQL 8

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 年之前
父节点
当前提交
4319bad8bc
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      plugins/mysql/mysqlembed.cpp

+ 4 - 0
plugins/mysql/mysqlembed.cpp

@@ -31,6 +31,10 @@
 #include "roxiemem.hpp"
 #include "nbcd.hpp"
 
+#if (MYSQL_VERSION_ID >= 80000)
+  typedef bool my_bool;
+#endif
+
 __declspec(noreturn) static void UNSUPPORTED(const char *feature) __attribute__((noreturn));
 
 static unsigned mysqlCacheCheckPeriod = 10000;