]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
do_execute() hook in cymysql dialect
authorHajime Nakagami <nakagami@gmail.com>
Wed, 6 Mar 2013 15:14:46 +0000 (00:14 +0900)
committerHajime Nakagami <nakagami@gmail.com>
Wed, 6 Mar 2013 15:14:46 +0000 (00:14 +0900)
lib/sqlalchemy/dialects/mysql/cymysql.py

index d9b43869c4c87db823528bf4386bd3935cee8bf1..6f9bc30d641320c58ba31c0f16b7c08f70189690 100644 (file)
@@ -43,6 +43,10 @@ class MySQLDialect_cymysql(MySQLDialect_mysqldb):
     driver = 'cymysql'
 
     description_encoding = None
+# Py2K
+    supports_unicode_binds = True
+    supports_unicode_statements = True
+# end Py2K
 
     colspecs = util.update_copy(
         MySQLDialect.colspecs,
@@ -55,6 +59,10 @@ class MySQLDialect_cymysql(MySQLDialect_mysqldb):
     def dbapi(cls):
         return __import__('cymysql')
 
+    def do_execute(self, cursor, statement, parameters, context=None):
+        """Provide an implementation of *cursor.execute(statement, parameters)*."""
+        cursor.execute(statement, parameters)
+
     def _extract_error_code(self, exception):
         return exception.errno