Skip to content

Commit fde43d0

Browse files
authored
Merge pull request #13 from pdinklag/mysql-8
Use bool instead of my_bool for libmysql version 8 or higher
2 parents b83fa63 + c64dd0f commit fde43d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mysql.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ struct MySqlBind : public MYSQL_BIND
3838
struct MySqlColumn
3939
{
4040
//! NULL value indicator
41+
#if defined(LIBMYSQL_VERSION_ID) && LIBMYSQL_VERSION_ID >= 80000
42+
bool is_null;
43+
#else
4144
my_bool is_null;
45+
#endif
4246

4347
//! output string data, currently extra long strings are truncated.
4448
char strdata[128];

0 commit comments

Comments
 (0)