]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove un-used mysql option developer/ndptech master
authorNick Porter <nick@portercomputing.co.uk>
Fri, 31 Jul 2026 16:29:17 +0000 (17:29 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 31 Jul 2026 16:30:48 +0000 (17:30 +0100)
This option only applies to synchronous connections and defaults to
false anyway, which is the value which was being set.

src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c

index 39b935879bab8fdb1684a0ef4eeffc7fbf1b0ecf..27b343cf2f2534b47816ca80cc58c8896eb6c5a6 100644 (file)
@@ -413,19 +413,6 @@ static connection_state_t _sql_connection_init(void **h, connection_t *conn, voi
 
        if (inst->character_set) mysql_optionsv(&(c->db), MYSQL_SET_CHARSET_NAME, inst->character_set);
 
-#if MYSQL_VERSION_ID < 80034
-       /*
-        *      We need to know about connection errors, and are capable
-        *      of reconnecting automatically.
-        *
-        *      This deprecated as of 8.0.34.
-        */
-       {
-               bool reconnect = 0;
-               mysql_options(&(c->db), MYSQL_OPT_RECONNECT, &reconnect);
-       }
-#endif
-
        sql_flags = CLIENT_MULTI_RESULTS | CLIENT_FOUND_ROWS;
 
 #ifdef CLIENT_MULTI_STATEMENTS