Skip to content

Commit

Permalink
Only use MYSQL_OPT_COMPRESSION_ALGORITHMS on >=8.0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Oct 30, 2023
1 parent 2ae0111 commit f1fc7ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dbdimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,11 @@ MYSQL *mysql_dr_connect(
PerlIO_printf(DBIc_LOGPIO(imp_xxh),
"imp_dbh->mysql_dr_connect: Enabling" \
" compression algorithms: %s\n", calg);
#if MYSQL_VERSION_ID >= 80018
mysql_options(sock, MYSQL_OPT_COMPRESSION_ALGORITHMS, calg);
#else
mysql_options(sock, MYSQL_OPT_COMPRESS, NULL);
#endif
}
if ((svp = hv_fetch(hv, "mysql_connect_timeout", 21, FALSE))
&& *svp && SvTRUE(*svp))
Expand Down

0 comments on commit f1fc7ba

Please sign in to comment.