From ff8458ab3e3e71c54aa8adaba6508f7def452c1f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 23 Jun 2006 14:38:16 +0000 Subject: [PATCH] fixed bug when specifying explicit module to mysql dialect --- CHANGES | 1 + lib/sqlalchemy/databases/mysql.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 0192527795..431546c478 100644 --- a/CHANGES +++ b/CHANGES @@ -17,6 +17,7 @@ and '(' 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 c4b1fd38b9..ca7a9de571 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): -- 2.47.3