Skip to content

Commit

Permalink
db_mysql: Fix build with older MariaDB libs (e.g. Debian 9)
Browse files Browse the repository at this point in the history
Thanks to Răzvan Crainea for helping troubleshoot!
  • Loading branch information
liviuchircu committed Dec 2, 2024
1 parent cc6c368 commit a27db64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/db_mysql/my_con.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ int db_mysql_connect(struct my_con* ptr)
#if (MYSQL_VERSION_ID >= 50700)
mysql_options(ptr->con, MYSQL_OPT_SSL_ENFORCE, (void *)&use_tls);
#endif
#else
#elif (MYSQL_VERSION_ID < 100000) /* fix error with older MariaDB libs */
tls_opts = (use_tls?SSL_MODE_PREFERRED:SSL_MODE_DISABLED);
mysql_options(ptr->con, MYSQL_OPT_SSL_MODE, (void *)&tls_opts);
#endif
Expand Down

0 comments on commit a27db64

Please sign in to comment.