2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-07 17:35:18 +00:00

[354-compilation-with-mysql-fails-on-fedora-29] Solved other issues

This commit is contained in:
Francis Dupont
2018-12-22 02:03:33 +01:00
parent ef559d3c38
commit 7f4847e9a4
6 changed files with 35 additions and 7 deletions

View File

@@ -17,6 +17,9 @@ namespace db {
//@{
#ifdef HAVE_MYSQL_MY_BOOL
/// @brief my_bools type for vectors.
typedef my_bool my_bools;
/// @brief MySQL false value.
const my_bool MLM_FALSE = 0;
@@ -24,9 +27,13 @@ const my_bool MLM_FALSE = 0;
const my_bool MLM_TRUE = 1;
#else
/// @brief my_bool type for MySQL 8.x.
/// @brief my_bool type in MySQL 8.x.
typedef bool my_bool;
/// @brief my_bools type for vectors in MySQL 8.x.
/// @note vector<my_bool> is specialized into a bitset.
typedef char my_bools;
/// @brief MySQL false value.
const my_bool MLM_FALSE = false;