Skip to content
This repository was archived by the owner on Aug 7, 2018. It is now read-only.

add sql server driver for linux to drivers tested when setting driver_needs_utf8 #10

Open
wants to merge 1 commit into
base: django-1.4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql_server/pyodbc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _cursor(self):
if self.driver_needs_utf8 is None:
self.driver_needs_utf8 = True
self.drv_name = self.connection.getinfo(Database.SQL_DRIVER_NAME).upper()
if self.drv_name in ('SQLSRV32.DLL', 'SQLNCLI.DLL', 'SQLNCLI10.DLL'):
if 'LIBSQLNCLI' in self.drv_name or self.drv_name in ('SQLSRV32.DLL', 'SQLNCLI.DLL', 'SQLNCLI10.DLL'):
self.driver_needs_utf8 = False

# http://msdn.microsoft.com/en-us/library/ms131686.aspx
Expand Down