diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-20 21:50:59 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-08-20 21:50:59 +0000 |
commit | 109d5359617bf8c9a8acc6498935a22f9f6949ef (patch) | |
tree | be3bbeb9543852da0e1c9d27ca67876b2a25cf80 /lib/sqlalchemy/databases/mysql.py | |
parent | 531faf0e187d756bda92a937a77accd86b813339 (diff) | |
download | sqlalchemy-109d5359617bf8c9a8acc6498935a22f9f6949ef.tar.gz |
- method call removal
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 41c6ec70f..6dc0d6057 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -1332,6 +1332,12 @@ class MySQLExecutionContext(default.DefaultExecutionContext): class MySQLDialect(default.DefaultDialect): """Details of the MySQL dialect. Not used directly in application code.""" + supports_alter = True + supports_unicode_statements = False + # identifiers are 64, however aliases can be 255... + max_identifier_length = 255 + supports_sane_rowcount = True + def __init__(self, use_ansiquotes=False, **kwargs): self.use_ansiquotes = use_ansiquotes kwargs.setdefault('default_paramstyle', 'format') @@ -1390,13 +1396,6 @@ class MySQLDialect(default.DefaultDialect): def type_descriptor(self, typeobj): return sqltypes.adapt_type(typeobj, colspecs) - # identifiers are 64, however aliases can be 255... - def max_identifier_length(self): - return 255; - - def supports_sane_rowcount(self): - return True - def compiler(self, statement, bindparams, **kwargs): return MySQLCompiler(statement, bindparams, dialect=self, **kwargs) @@ -2369,13 +2368,12 @@ MySQLSchemaReflector.logger = logging.class_logger(MySQLSchemaReflector) class _MySQLIdentifierPreparer(compiler.IdentifierPreparer): """MySQL-specific schema identifier configuration.""" + + reserved_words = RESERVED_WORDS def __init__(self, dialect, **kw): super(_MySQLIdentifierPreparer, self).__init__(dialect, **kw) - def _reserved_words(self): - return RESERVED_WORDS - def _fold_identifier_case(self, value): # TODO: determine MySQL's case folding rules # |