1. Carlos Rocha
  2. django-mssql

Commits

Michael Manfre  committed 6b712aa

Added DATABASE_OPTIONS['provider'] to allow changing the provider used in the connection string. Default is "SQLOLEDB".

  • Participants
  • Parent commits 3067255
  • Branches default

Comments (0)

Files changed (1)

File source/sqlserver_ado/base.py

View file
         if 'extra_params' in options:
             parts.append(options['extra_params'])
         
+        if 'provider' in options:
+            parts[0] = 'PROVIDER={0}'.format(options['provider'])
+    
     return ";".join(parts)
 
 class DatabaseWrapper(BaseDatabaseWrapper):