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/engine/default.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/engine/default.py')
-rw-r--r-- | lib/sqlalchemy/engine/default.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py index 0724d1fb9..390094c7d 100644 --- a/lib/sqlalchemy/engine/default.py +++ b/lib/sqlalchemy/engine/default.py @@ -59,7 +59,18 @@ class DefaultDialect(base.Dialect): # end Py2K name = 'default' + + # length at which to truncate + # any identifier. max_identifier_length = 9999 + + # length at which to truncate + # the name of an index. + # Usually None to indicate + # 'use max_identifier_length'. + # thanks to MySQL, sigh + max_index_name_length = None + supports_sane_rowcount = True supports_sane_multi_rowcount = True dbapi_type_map = {} |