]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed ms-sql connect() to work with adodbapi
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Aug 2006 18:23:48 +0000 (18:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Aug 2006 18:23:48 +0000 (18:23 +0000)
CHANGES
lib/sqlalchemy/databases/mssql.py

diff --git a/CHANGES b/CHANGES
index 34344d4eeab09755b494aa9142dfd4684038c69f..23f50312363b81eac046626e198bfefcc4d8868d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -28,6 +28,7 @@ return an array instead of string for SHOW CREATE TABLE call
 - fix to lazy loads when mapping to joins [changeset:1770]
 - all create()/drop() calls have a keyword argument of "connectable".
 "engine" is deprecated.
+- fixed ms-sql connect() to work with adodbapi
 
 0.2.6
 - big overhaul to schema to allow truly composite primary and foreign
index 38699a8a52ac1b12b550b781346a88087be2ffe6..690b7186342b274c33596a20612337e9073aeb49 100644 (file)
@@ -237,16 +237,12 @@ class MSSQLExecutionContext(default.DefaultExecutionContext):
 class MSSQLDialect(ansisql.ANSIDialect):            
     def __init__(self, module = None, **params):
         self.module = module or dbmodule
-        self.opts = {}
         ansisql.ANSIDialect.__init__(self, **params)
 
     def create_connect_args(self, url):
-        self.opts = url.translate_connect_args(['host', 'database', 'user', 'password', 'port'])
-        self.opts.update(url.query)
-        return ([], self.opts)
-
-    def connect_args(self):
-        return make_connect_string(self.opts)
+        opts = url.translate_connect_args(['host', 'database', 'user', 'password', 'port'])
+        opts.update(url.query)
+        return make_connect_string(opts)
 
     def create_execution_context(self):
         return MSSQLExecutionContext(self)