From bb8e4b04fdd6024dc930b97749be45bd83c3b97d Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Sun, 3 Jul 2016 21:20:14 +0200 Subject: [PATCH] mysql autoreconnect is a really bad idea prepared statementes are released at reconnect --- modules/gmysqlbackend/smysql.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index aac695e28..daac6ab49 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -384,7 +384,7 @@ SMySQL::SMySQL(const string &database, const string &host, uint16_t port, const do { #if MYSQL_VERSION_ID >= 50013 - my_bool reconnect = 1; + my_bool reconnect = 0; mysql_options(&d_db, MYSQL_OPT_RECONNECT, &reconnect); #endif -- 2.40.0