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:
parent
7803d9a1a9
commit
fe377bbb78
@ -1,6 +1,6 @@
|
||||
PORTNAME= libnss-mysql
|
||||
PORTVERSION= 1.5
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
@ -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",
|
Loading…
Reference in New Issue
Block a user