Skip to content

Commit 0c68217

Browse files
committed
docs: Added docs for the new feature.
1 parent 3beb416 commit 0c68217

3 files changed

Lines changed: 27 additions & 16 deletions

File tree

ChangeLog

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ General
1414
Features
1515
--------
1616

17-
TBA
17+
- Support for new in SQL Server 2008 ``DATE``, ``TIME`` and ``DATETIME2`` data
18+
types (GH-156). The following conditions need to be additionally met so
19+
values of these column types can be returned from the database as their
20+
native corresponding Python data types instead of as strings:
21+
22+
* Underlying FreeTDS must be 0.95 or newer.
23+
* TDS protocol version in use must be 7.3 or newer.
24+
25+
Thanks Ed Avis for the implementation. (GH-331)
1826

1927
Bug fixes
2028
---------

ChangeLog_highlights.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ General
1212
Features
1313
--------
1414

15-
TBA
15+
- Support for new in SQL Server 2008 ``DATE``, ``TIME`` and ``DATETIME2`` data
16+
types (GH-156). The following conditions need to be additionally met so
17+
values of these column types can be returned from the database as their
18+
native corresponding Python data types instead of as strings:
19+
20+
* Underlying FreeTDS must be 0.95 or newer.
21+
* TDS protocol version in use must be 7.3 or newer.
22+
23+
Thanks Ed Avis for the implementation. (GH-331)
1624

1725
Bug fixes
1826
---------

docs/faq.rst

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -264,22 +264,17 @@ and ``TIME`` columns as simple strings. For example::
264264

265265
Yep, so the problem here is that ``DATETIME`` has been supported by `FreeTDS
266266
<http://www.freetds.org/>`_ for a long time, but ``DATE`` and ``TIME`` are
267-
newer types in SQL Server and Microsoft never added support for them to db-lib
268-
and FreeTDS never added support for them either.
267+
newer types in SQL Server, Microsoft never added support for them to db-lib
268+
and FreeTDS added support for them in version 0.95.
269269

270-
There was some discussion of adding it to FreeTDS, but I think that stalled.
271-
See this thread:
270+
If you need support for these data types (i.e. they get returned from the
271+
database as their native corresponding Python data types instead of as strings)
272+
as well as for the ``DATETIME2`` one, then make sure the following conditions
273+
are met:
272274

273-
http://lists.ibiblio.org/pipermail/freetds/2013q2/thread.html#28348
274-
275-
So we would need to get FreeTDS to support it and then the user would have to
276-
make sure to use a very recent FreeTDS (unless pymssql links in said version of
277-
FreeTDS).
278-
279-
Links:
280-
281-
* https://github.com/pymssql/pymssql/issues/156
282-
* `Discussion of adding support for DATE and TIME to FreeTDS <http://lists.ibiblio.org/pipermail/freetds/2013q2/thread.html#28348>`_
275+
* You are connecting to SQL Server 2008 or newer.
276+
* You are using FreeTDS 0.95 or newer.
277+
* You are using TDS protocol version 7.3 or newer.
283278

284279
Shared object "libsybdb.so.3" not found
285280
=======================================

0 commit comments

Comments
 (0)