Skip to content

Commit 25f52cd

Browse files
committed
add support for SQL Server 2014
1 parent 3295928 commit 25f52cd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Features
1212
--------
1313

1414
- Supports Django 1.2, 1.3, 1.4, 1.5
15-
- Supports MS SQL Server 2005, 2008/2008R2, 2012, and Windows Azure SQL
15+
- Supports MS SQL Server 2005, 2008/2008R2, 2012, 2014 and Windows Azure SQL
1616
Database
1717
- Supports LIMIT+OFFSET and offset w/o LIMIT emulation.
1818
- Passes most of the tests of the Django test suite.

sql_server/pyodbc/operations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def _get_sql_server_ver(self):
3232
cur.execute("SELECT CAST(SERVERPROPERTY('ProductVersion') as varchar)")
3333
ver_code = cur.fetchone()[0]
3434
ver_code = int(ver_code.split('.')[0])
35-
if ver_code >= 11:
35+
if ver_code >= 12:
36+
self._ss_ver = 2014
37+
elif ver_code == 11:
3638
self._ss_ver = 2012
3739
elif ver_code == 10:
3840
self._ss_ver = 2008

0 commit comments

Comments
 (0)