summaryrefslogtreecommitdiffstats
path: root/dev-db/freetds/files/freetds-ds-connect_timeout.patch
diff options
context:
space:
mode:
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);