From 6a99f293130c6e11aba28c19c84f9195c5bf60c7 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 17 Dec 2008 23:09:51 +0000 Subject: - _execute_clauseelement() goes back to being a private method. Subclassing Connection is not needed now that ConnectionProxy is available. - tightened the interface for the various _execute_XXX() methods to reduce ambiguity - __distill_params() no longer creates artificial [{}] entry, blank dict is no longer passed through to do_execute() in any case unless explicitly sent from the outside as in connection.execute("somestring"), {}) - fixed a few old sql.query tests which were doing that - removed needless do_execute() from mysql dialect - fixed charset param not properly being sent to _compat_fetchone() in mysql --- lib/sqlalchemy/databases/mysql.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 6a01b789b..0fc7c8fbd 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -1510,9 +1510,6 @@ class MySQLDialect(default.DefaultDialect): def supports_unicode_statements(self): return True - def do_execute(self, cursor, statement, parameters, context=None): - cursor.execute(statement, parameters) - def do_commit(self, connection): """Execute a COMMIT.""" @@ -1811,8 +1808,8 @@ class MySQLDialect(default.DefaultDialect): return row = _compat_fetchone( - connection.execute("SHOW VARIABLES LIKE 'sql_mode'", - charset=charset)) + connection.execute("SHOW VARIABLES LIKE 'sql_mode'"), + charset=charset) if not row: mode = '' else: -- cgit v1.2.1