[mythtv-commits] Ticket #13093: 'MYSQL {aka struct st_mysql}' has no member named 'reconnect'
MythTV
noreply at mythtv.org
Mon Aug 7 20:47:57 UTC 2017
#13093: 'MYSQL {aka struct st_mysql}' has no member named 'reconnect'
-----------------------------------------+------------------------------
Reporter: Richard Shaw <hobbes1069@…> | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: Plugin - MythZoneminder | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+------------------------------
Comment (by Gary Buhrmaster <gary.buhrmaster@…>):
If it helps the mythzoneminder wrangler, here is a completely untested
prototype patch (neither compile tested, nor functionally tested):
{{{
--- a/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp
+++ b/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp
@@ -183,7 +183,8 @@ void connectToDatabase(void)
exit(mysql_errno(&g_dbConn));
}
- g_dbConn.reconnect = 1;
+ my_bool reconnect = 1;
+ mysql_options(&g_dbConn, MYSQL_OPT_RECONNECT, &reconnect);
if (!mysql_real_connect(&g_dbConn, g_server.c_str(), g_user.c_str(),
g_password.c_str(), 0, 0, 0, 0))
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13093#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list