summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-06-23 14:38:16 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-06-23 14:38:16 +0000
commitff8458ab3e3e71c54aa8adaba6508f7def452c1f (patch)
tree8e7aa32b79dfa4ca2d84e925257f2aa89fc3485c
parent412f7f2ff0160bc171fc5e7367cacc03f02cd72d (diff)
downloadsqlalchemy-ff8458ab3e3e71c54aa8adaba6508f7def452c1f.tar.gz
fixed bug when specifying explicit module to mysql dialect
-rw-r--r--CHANGES1
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 019252779..431546c47 100644
--- a/CHANGES
+++ b/CHANGES
@@ -17,6 +17,7 @@ and '(<the rest of it>' since *thats how MySQL indicates a non-
reserved word tablename.....* [ticket:206]
- more fixes to inheritance, related to many-to-many relations
properly saving
+- fixed bug when specifying explicit module to mysql dialect
0.2.3
- overhaul to mapper compilation to be deferred. this allows mappers
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index c4b1fd38b..ca7a9de57 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -143,6 +143,8 @@ class MySQLDialect(ansisql.ANSIDialect):
def __init__(self, module = None, **kwargs):
if module is None:
self.module = mysql
+ else:
+ self.module = module
ansisql.ANSIDialect.__init__(self, **kwargs)
def create_connect_args(self, url):