From fdb9440d2e6471280a481f32c95e7abec73df3b0 Mon Sep 17 00:00:00 2001 From: Matt Harrison Date: Mon, 7 Apr 2008 22:42:28 +0000 Subject: refactor of default_paramstyle, use paramstyle argument on Dialect to change --- lib/sqlalchemy/databases/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index c4b8af684..a86035be5 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -1420,10 +1420,10 @@ class MySQLDialect(default.DefaultDialect): # identifiers are 64, however aliases can be 255... max_identifier_length = 255 supports_sane_rowcount = True + default_paramstyle = 'format' def __init__(self, use_ansiquotes=None, **kwargs): self.use_ansiquotes = use_ansiquotes - kwargs.setdefault('default_paramstyle', 'format') default.DefaultDialect.__init__(self, **kwargs) def dbapi(cls): -- cgit v1.2.1