@@ -29,7 +29,7 @@ Functions
2929.. function :: connect(server='.', user='', password='', database='', \
3030 timeout=0, login_timeout=60, charset='UTF-8', \
3131 as_dict=False, host='', appname=None, port='1433',\
32- conn_properties, autocommit=False, tds_version='7.1' )
32+ conn_properties, autocommit=False, tds_version=None )
3333
3434 Constructor for creating a connection to the database. Returns a
3535 :class: `Connection ` object.
@@ -92,23 +92,29 @@ Functions
9292 .. versionadded :: 2.1.2
9393 The *tds_version * parameter.
9494
95- .. warning ::
96- The *tds_version * parameter, new in version 2.1.2, has a default value of
97- '7.1'. This is for consistency with the default value of the equally-named
98- parameter of the :class: `_mssql.connect() <_mssql.MSSQLConnection> `
99- function.
95+ .. versionchanged :: 2.2.0
96+ The default value of the *tds_version * parameter was changed to ``None ``.
97+ In version 2.1.2 its default value was ``'7.1' ``.
10098
101- This will change with pymssql 2.2.0 when
99+ .. warning ::
100+ The *tds_version * parameter has a default value of ``None ``. This means two
101+ things:
102102
103- * The default value will be changed to None
104- * The version of the TDS protocol to use by default won't be 7.1 anymore
105- * You won't able to rely on such default value anymore and will need to
106- either
103+ #. You can't rely anymore in the old ``'7.1' `` default value and
104+ #. Now you'll need to either
107105
108- * Specify its value explicitly or
106+ * Specify its value explicitly by passing a value for this parameter or
109107 * Configure it using facilities provided by FreeTDS (see `here
110108 <http://www.freetds.org/userguide/freetdsconf.htm#TAB.FREETDS.CONF> `_
111- `and here <http://www.freetds.org/userguide/envvar.htm >`_)
109+ and `here <http://www.freetds.org/userguide/envvar.htm >`_)
110+
111+ This might look cumbersome but at the same time means you can now fully
112+ configure the characteristics of a connection to SQL Server from Python
113+ code when using pymssql without using a stanza for the server in the
114+ ``freetds.conf `` file or even with no ``freetds.conf `` at all. Up to
115+ version 2.1.1 it simply wasn't possible to control the TDS protocol
116+ version, and in version 2.1.2 it was possible to set it but version 7.1 was
117+ used if not specified.
112118
113119.. function :: get_dbversion()
114120
0 commit comments