summaryrefslogtreecommitdiffstats
path: root/dev-db/freetds/files/freetds-ds-connect_timeout.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /dev-db/freetds/files/freetds-ds-connect_timeout.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'dev-db/freetds/files/freetds-ds-connect_timeout.patch')
-rw-r--r--dev-db/freetds/files/freetds-ds-connect_timeout.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-db/freetds/files/freetds-ds-connect_timeout.patch b/dev-db/freetds/files/freetds-ds-connect_timeout.patch
new file mode 100644
index 0000000..013764e
--- /dev/null
+++ b/dev-db/freetds/files/freetds-ds-connect_timeout.patch
@@ -0,0 +1,12 @@
+diff -dPNur freetds-0.82/src/odbc/odbc.c freetds-0.82-ds/src/odbc/odbc.c
+--- freetds-0.82/src/odbc/odbc.c 2008-05-06 04:57:26.000000000 +0200
++++ freetds-0.82-ds/src/odbc/odbc.c 2008-06-26 12:20:43.000000000 +0200
+@@ -312,7 +312,7 @@
+
+ tds_fix_connection(connection);
+
+- connection->connect_timeout = dbc->attr.connection_timeout;
++ connection->connect_timeout = dbc->attr.login_timeout;
+
+ if (tds_connect(dbc->tds_socket, connection) == TDS_FAIL) {
+ tds_free_socket(dbc->tds_socket);