Commits

Michael Manfre committed 6b712aa

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

Comments (0)

Files changed (1)

source/sqlserver_ado/base.py

         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):