Kea  1.9.9-git
mysql_constants.h
Go to the documentation of this file.
1 // Copyright (C) 2018-2021 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef MYSQL_CONSTANTS_H
8 #define MYSQL_CONSTANTS_H
9 
10 #include <mysql.h>
11 
12 namespace isc {
13 namespace db {
14 
17 
18 
22 typedef char my_bools;
23 
24 #ifdef HAVE_MYSQL_MY_BOOL
25 const my_bool MLM_FALSE = 0;
27 
29 const my_bool MLM_TRUE = 1;
30 
31 #else
32 typedef bool my_bool;
34 
36 const my_bool MLM_FALSE = false;
37 
39 const my_bool MLM_TRUE = true;
40 #endif
41 
43 static_assert(sizeof(my_bool) == sizeof(char), "unsupported bool size");
44 
47 
50 
52 
54 
55 const uint32_t MYSQL_SCHEMA_VERSION_MAJOR = 9;
56 const uint32_t MYSQL_SCHEMA_VERSION_MINOR = 6;
57 
59 
60 
61 } // end of namespace isc::db
62 } // end of namespace isc
63 
64 #endif
bool my_bool
my_bool type in MySQL 8.x.
char my_bools
my_bools type for vectors.
const uint32_t MYSQL_SCHEMA_VERSION_MAJOR
const uint32_t MYSQL_SCHEMA_VERSION_MINOR
const my_bool MLM_FALSE
MySQL false value.
const int MLM_MYSQL_FETCH_SUCCESS
check for bool size
Defines the logger used by the top-level component of kea-dhcp-ddns.
const int MLM_MYSQL_FETCH_FAILURE
MySQL fetch failure code.
const my_bool MLM_TRUE
MySQL true value.