summaryrefslogtreecommitdiff
path: root/test/profiling/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-11-05 20:50:48 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-11-05 20:50:48 +0000
commit9f894d2f265bb5fd03ab0b3aa3fd164108c99259 (patch)
tree5886dd1b46b1e1865de2a278ada95f168ed1915b /test/profiling/compiler.py
parent89b86f41bbdb15d024bc716fdb484b1b6f57ddb9 (diff)
downloadsqlalchemy-9f894d2f265bb5fd03ab0b3aa3fd164108c99259.tar.gz
- 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
Diffstat (limited to 'test/profiling/compiler.py')
-rw-r--r--test/profiling/compiler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/profiling/compiler.py b/test/profiling/compiler.py
index 278d32827..5be8c0f8e 100644
--- a/test/profiling/compiler.py
+++ b/test/profiling/compiler.py
@@ -15,15 +15,15 @@ class CompileTest(TestBase, AssertsExecutionResults):
Column('c1', Integer, primary_key=True),
Column('c2', String(30)))
- @profiling.function_call_count(72, {'2.4': 42})
+ @profiling.function_call_count(68, {'2.4': 42})
def test_insert(self):
t1.insert().compile()
- @profiling.function_call_count(70, {'2.4': 45})
+ @profiling.function_call_count(68, {'2.4': 45})
def test_update(self):
t1.update().compile()
- @profiling.function_call_count(202, versions={'2.4':133})
+ @profiling.function_call_count(195, versions={'2.4':133})
def test_select(self):
s = select([t1], t1.c.c2==t2.c.c1)
s.compile()