Skip to content

Commit

Permalink
Merge pull request #11843 from elpaso/bugfix-gh_11842-mysql-reconnect
Browse files Browse the repository at this point in the history
[mysql] Remove deprecated reconnect option for mysql >= 80034
  • Loading branch information
rouault authored Feb 12, 2025
2 parents 51ee293 + 30f0c03 commit 857b4c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ogr/ogrsf_frmts/mysql/ogrmysqldatasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ int OGRMySQLDataSource::Open(const char *pszNewName, char **papszOpenOptionsIn,
CSLDestroy(papszTableNames);
return FALSE;
}
#if defined(LIBMYSQL_VERSION_ID) && (LIBMYSQL_VERSION_ID < 80034)
else
{
// Enable automatic reconnection
Expand All @@ -229,6 +230,7 @@ int OGRMySQLDataSource::Open(const char *pszNewName, char **papszOpenOptionsIn,
// and at any point on more recent versions.
mysql_options(hConn, MYSQL_OPT_RECONNECT, &reconnect);
}
#endif

bDSUpdate = bUpdate;

Expand Down

0 comments on commit 857b4c6

Please sign in to comment.