Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

fixes mysql 8+ boolean compatibility problem #265

Open
wants to merge 1 commit into
base: dev-next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/output-plugins/spo_database.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,18 @@ typedef struct _dbReliabilityHandle
/* Herited from shared data globals */

unsigned long pThreadID; /* Used to store thread information and know if we "reconnected automaticaly" */
/*
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html
Incompatible Change: The my_bool type is no longer used in MySQL source code.
Any third-party code that used this type to represent C boolean variables should use the bool or int C type instead.
*/
#if !defined(MARIADB_BASE_VERSION) && !defined(MARIADB_VERSION_ID) && \
MYSQL_VERSION_ID >= 80001 && MYSQL_VERSION_ID != 80002
bool mysql_reconnect; /* We will handle it via the api. */
#else
my_bool mysql_reconnect; /* We will handle it via the api. */
#endif

#endif /* ENABLE_MYSQL */

#ifdef ENABLE_POSTGRESQL
Expand Down