Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cats: add support for MySQL 8
The MySQL 8 client library removed the my_bool type. The replacement
is the default bool type.
This patch adds an ifdef that selects the correct type depending on the
MySQL client version.
  • Loading branch information
arogge committed Sep 3, 2019
1 parent df5a1b3 commit 949b210
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/cats/mysql.cc
Expand Up @@ -148,7 +148,11 @@ bool BareosDbMysql::OpenDatabase(JobControlRecord* jcr)
{
bool retval = false;
int errstat;
#if LIBMYSQL_VERSION_ID > 80000
bool reconnect = 1;
#else
my_bool reconnect = 1;
#endif

P(mutex);
if (connected_) {
Expand Down

0 comments on commit 949b210

Please sign in to comment.