From: Mike Bayer Date: Fri, 23 Jun 2006 14:38:16 +0000 (+0000) Subject: fixed bug when specifying explicit module to mysql dialect X-Git-Tag: rel_0_2_4~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff8458ab3e3e71c54aa8adaba6508f7def452c1f;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fixed bug when specifying explicit module to mysql dialect --- 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):