2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-08 01:45:15 +00:00

[354-compilation-with-mysql-fails-on-fedora-29] Added HAVE_MYSQL_MY_BOOL

This commit is contained in:
Francis Dupont
2018-12-21 16:59:47 +01:00
parent 82441dd64f
commit ef559d3c38
2 changed files with 31 additions and 9 deletions

View File

@@ -16,12 +16,24 @@ namespace db {
///
//@{
#ifdef HAVE_MYSQL_MY_BOOL
/// @brief MySQL false value.
const my_bool MLM_FALSE = 0;
/// @brief MySQL true value.
const my_bool MLM_TRUE = 1;
#else
/// @brief my_bool type for MySQL 8.x.
typedef bool my_bool;
/// @brief MySQL false value.
const my_bool MLM_FALSE = false;
/// @brief MySQL true value.
const my_bool MLM_TRUE = true;
#endif
/// @brief MySQL fetch success code.
const int MLM_MYSQL_FETCH_SUCCESS = 0;