1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

net/libnss-mysql: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version (+)

PR:	280862
This commit is contained in:
Max Khon 2024-11-05 21:05:23 +03:00 committed by Dima Panov
parent 7803d9a1a9
commit fe377bbb78
No known key found for this signature in database
GPG Key ID: FB8BA09DD5398F29
2 changed files with 1 additions and 23 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= libnss-mysql
PORTVERSION= 1.5
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= net
MASTER_SITES= SF

View File

@ -1,22 +0,0 @@
--- src/mysql.c.orig 2005-09-04 03:34:02 UTC
+++ src/mysql.c
@@ -196,6 +196,7 @@ _nss_mysql_connect_sql (MYSQL_RES **mresult)
int retval;
sql_server_t *server = &conf.sql.server;
unsigned int port;
+ my_bool reconnect = 1;
DENTER
@@ -238,8 +239,9 @@ _nss_mysql_connect_sql (MYSQL_RES **mresult)
DSRETURN (NSS_UNAVAIL)
}
ci.valid = ntrue;
- ci.link.reconnect = 0; /* Safety: We can't let MySQL assume socket is
- still valid; see _nss_mysql_validate_socket */
+ /* Safety: We can't let MySQL assume socket is still valid;
+ see _nss_mysql_validate_socket */
+ mysql_options(&ci.link, MYSQL_OPT_RECONNECT, &reconnect);
DSRETURN (NSS_SUCCESS)
}
_nss_mysql_log (LOG_ALERT, "Connection to server '%s' failed: %s",