]> git.ipfire.org Git - thirdparty/pdns.git/commit
smysql: stop explicity setting MYSQL_OPT_RECONNECT to 0 13341/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>
Fri, 6 Oct 2023 13:40:00 +0000 (15:40 +0200)
commita1c11b2b70e7a8848aa6f489b5a137fcd04b562f
treef9b07213c58defca629dae6097fc63531a870a14
parentd06d301abc7baa5159e16c4cabff999f9590b61a
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