diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-08-02 01:12:03 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-08-02 01:12:03 -0400 |
commit | b2c0b50bbfa43f662afd16b7ca51bcfe17e4c351 (patch) | |
tree | d98573e0d6ed5308cde1c6aa32709afa86f0d7fc /lib/sqlalchemy/dialects/mysql/base.py | |
parent | 2f844f231cbcd86dad5d4094565858424ea2c3c7 (diff) | |
download | sqlalchemy-b2c0b50bbfa43f662afd16b7ca51bcfe17e4c351.tar.gz |
- The generated index name also is based on
a "max index name length" attribute which is
separate from the "max identifier length" -
this to appease MySQL who has a max length
of 64 for index names, separate from their
overall max length of 255. [ticket:1412]
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/mysql/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index 1c61f47e1..a2d3748f3 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -1607,8 +1607,10 @@ class MySQLDialect(default.DefaultDialect): name = 'mysql' supports_alter = True + # identifiers are 64, however aliases can be 255... max_identifier_length = 255 + max_index_name_length = 64 supports_native_enum = True |