Subject: | DBD-mysql fails to build with MariaDB 10.2 |
Date: | Sat, 10 Jun 2017 16:08:40 +0200 |
To: | bug-DBD-mysql [...] rt.cpan.org |
From: | Bernard Spil <brnrd [...] FreeBSD.org> |
Hi,
After updating MariaDB to 10.2 apparently direct struct access to MYSQL*
was removed. Since (at least) MySQL 5.5 the mysql_options method is
available that can set the reconnect flag.
From: https://mariadb.com/kb/en/mariadb/mysql_optionsv/
MYSQL_OPT_RECONNECT: Enable or disable automatic reconnect.
my_bool reconnect= 1; /* enable reconnect */
mysql_optionsv(mysql, MYSQL_OPT_RECONNECT, (void *)&reconnect);
See also: https://bugs.freebsd.org/219788
Additionally MariaDB seems to not include mysql_version.h. Adding the
include fixes this. No side-effects for MySQL as it will only be loaded
once.
Unified diffs attached.
Thanks!
Bernard Spil (maintainer of MariaDB ports on FreeBSD).
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.