diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-27 17:53:00 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-27 17:53:00 +0000 |
commit | 8b1096eea4fdc081a803279c57226ac07481d788 (patch) | |
tree | 2f8bc9af4f03c1eddeb1f29ce3ce745258bf0b8b /lib/sqlalchemy/dialects/mysql/oursql.py | |
parent | 80d8d0ef67befb814802c0c8b490af59bfab67fa (diff) | |
download | sqlalchemy-8b1096eea4fdc081a803279c57226ac07481d788.tar.gz |
some todos
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/oursql.py')
-rw-r--r-- | lib/sqlalchemy/dialects/mysql/oursql.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/oursql.py b/lib/sqlalchemy/dialects/mysql/oursql.py index 87a509493..78b947e02 100644 --- a/lib/sqlalchemy/dialects/mysql/oursql.py +++ b/lib/sqlalchemy/dialects/mysql/oursql.py @@ -80,6 +80,11 @@ class MySQL_oursql(MySQLDialect): """Provide an implementation of *cursor.execute(statement, parameters)*.""" # Py3K +# TODO: this isn't right. the supports_unicode_binds +# and supports_unicode_statements flags should be used for this one. +# also, don't call _detect_charset - use self._connection_charset +# which is already configured (uses _detect_charset just once). +# # if context is not None: # charset = self._detect_charset(context.connection) # if charset is not None: @@ -134,6 +139,8 @@ class MySQL_oursql(MySQLDialect): def has_table(self, connection, table_name, schema=None): return MySQLDialect.has_table(self, connection.execution_options(_oursql_plain_query=True), table_name, schema) + # TODO: don't do this. just have base _show_create_table return + # unicode. don't reuse _detect_charset(), use _connection_charset. def _show_create_table(self, connection, table, charset=None, full_name=None): sql = MySQLDialect._show_create_table(self, |