Skip to content

Use bool instead of my_bool for libmysql version 8 or higher#13

Merged
bingmann merged 1 commit intobingmann:masterfrom
pdinklag:mysql-8
May 18, 2022
Merged

Use bool instead of my_bool for libmysql version 8 or higher#13
bingmann merged 1 commit intobingmann:masterfrom
pdinklag:mysql-8

Conversation

@pdinklag
Copy link
Copy Markdown
Contributor

Starting from version 8 of libmysql, the type my_bool is no longer defined should be replaced by int or bool as per the MySQL 8.0 Release Notes.

This PR adds a preprocessor-time test to see whether LIBMYSQL_VERSION_ID is defined as version 8 or higher and, if that is the case, replaces the single use of my_bool by bool.

@bingmann bingmann merged commit fde43d0 into bingmann:master May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants