]> git.ipfire.org Git - thirdparty/pdns.git/commit
smysql: stop explicity setting MYSQL_OPT_RECONNECT to 0 13272/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 12 Sep 2023 15:09:57 +0000 (17:09 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 18 Sep 2023 09:19:13 +0000 (11:19 +0200)
commit8d706cf0cac978eaf393dc8569e24925629ddb99
tree8277ae2021c095ee243eb7028a609f04bbc4438b
parent53c96ca8fe2126e8a0782375db0210377e5be9fc
smysql: stop explicity setting MYSQL_OPT_RECONNECT to 0

Setting this option, even to 0, causes spurious warnings to the console
with recent libmysqlclient versions. The upstream bug
( https://bugs.mysql.com/bug.php?id=112089 )
has now been open for a month, so we're implementing a workaround.

0 was the default since at least MySQL 5.7, perhaps longer.

closes #13242

(cherry picked from commit f1cbc20b72ab95531f0a84bab40ac6ea1610241f)
modules/gmysqlbackend/smysql.cc