Change-Id: Ide9e916d02fbbef549aa2838d1402c2b091e701d
Fixes: #3820
.. changelog::
:version: 1.1.1
+ .. change::
+ :tags: bug, mssql
+ :tickets: 3820
+
+ The "SELECT SERVERPROPERTY"
+ query added in :ticket:`3810` and :ticket:`3814` is failing on unknown
+ combinations of Pyodbc and SQL Server. While failure of this function
+ was anticipated, the exception catch was not broad enough so it now
+ catches all forms of pyodbc.Error.
+
+
.. changelog::
:version: 1.1.0
:released: October 5, 2016
def _get_server_version_info(self, connection):
try:
raw = connection.scalar("SELECT SERVERPROPERTY('ProductVersion')")
- except exc.ProgrammingError:
+ except exc.DBAPIError:
# SQL Server docs indicate this function isn't present prior to
- # 2008
+ # 2008; additionally, unknown combinations of pyodbc aren't
+ # able to run this query.
return super(MSDialect_pyodbc, self).\
_get_server_version_info(connection)
else: