summaryrefslogtreecommitdiffstats
path: root/dev-db/freetds/files/freetds-ds-connect_timeout.patch
blob: 013764e9099b5f7035049cb5cd14a0b5b7d0f5ec (plain)
1
2
3
4
5
6
7
8
9
10
11
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);