]> git.ipfire.org Git - thirdparty/pdns.git/commit
smysql: stop explicity setting MYSQL_OPT_RECONNECT to 0 13271/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:18:46 +0000 (11:18 +0200)
commitc3e67f8abceae9300c3c1b255bdfcd60cdfebcb6
tree49b1fc2cf7de107b44f73f42b0db2a81f468d1fd
parent4902001c835cd32fa5233d477a6fdae588199a81
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