]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Dialects can now generate label names of adjustable length.
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Nov 2008 20:50:48 +0000 (20:50 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Nov 2008 20:50:48 +0000 (20:50 +0000)
commit9f894d2f265bb5fd03ab0b3aa3fd164108c99259
tree5886dd1b46b1e1865de2a278ada95f168ed1915b
parent89b86f41bbdb15d024bc716fdb484b1b6f57ddb9
- Dialects can now generate label names of adjustable length.
Pass in the argument "label_length=<value>" to create_engine()
to adjust how many characters max will be present in dynamically
generated column labels, i.e. "somecolumn AS somelabel".  Any
value less than 6 will result in a label of minimal size,
consiting of an underscore and a numeric counter.
The compiler uses the value of dialect.max_identifier_length
as a default. [ticket:1211]
- removed ANON_NAME regular expression, using string patterns now
- _generated_label() unicode subclass is used to indicate generated names
which are subject to truncation
CHANGES
doc/build/content/dbengine.txt
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/shard.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
test/profiling/compiler.py
test/profiling/zoomark.py
test/profiling/zoomark_orm.py
test/sql/labels.py