diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-17 23:09:51 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-17 23:09:51 +0000 |
commit | 6a99f293130c6e11aba28c19c84f9195c5bf60c7 (patch) | |
tree | fec4da7bdcf1a3698f71eb24bda378249f3d56a4 /lib/sqlalchemy/databases/mysql.py | |
parent | 7b7530de199963fc946b7f96c14bf78ae24a43a3 (diff) | |
download | sqlalchemy-6a99f293130c6e11aba28c19c84f9195c5bf60c7.tar.gz |
- _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
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 7 |
1 files changed, 2 insertions, 5 deletions
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: |