diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-11-05 20:50:48 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-11-05 20:50:48 +0000 |
| commit | 9f894d2f265bb5fd03ab0b3aa3fd164108c99259 (patch) | |
| tree | 5886dd1b46b1e1865de2a278ada95f168ed1915b /test/profiling | |
| parent | 89b86f41bbdb15d024bc716fdb484b1b6f57ddb9 (diff) | |
| download | sqlalchemy-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')
| -rw-r--r-- | test/profiling/compiler.py | 6 | ||||
| -rw-r--r-- | test/profiling/zoomark.py | 8 | ||||
| -rw-r--r-- | test/profiling/zoomark_orm.py | 4 |
3 files changed, 9 insertions, 9 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() diff --git a/test/profiling/zoomark.py b/test/profiling/zoomark.py index eb21c141e..08215454a 100644 --- a/test/profiling/zoomark.py +++ b/test/profiling/zoomark.py @@ -332,11 +332,11 @@ class ZooMarkTest(TestBase): def test_profile_2_insert(self): self.test_baseline_2_insert() - @profiling.function_call_count(4178, {'2.4': 2557}) + @profiling.function_call_count(3858, {'2.4': 2557}) def test_profile_3_properties(self): self.test_baseline_3_properties() - @profiling.function_call_count(15869, {'2.4': 10549}) + @profiling.function_call_count(14752, {'2.4': 10549}) def test_profile_4_expressions(self): self.test_baseline_4_expressions() @@ -344,11 +344,11 @@ class ZooMarkTest(TestBase): def test_profile_5_aggregates(self): self.test_baseline_5_aggregates() - @profiling.function_call_count(2054, {'2.4': 1256}) + @profiling.function_call_count(1904, {'2.4': 1256}) def test_profile_6_editing(self): self.test_baseline_6_editing() - @profiling.function_call_count(3276, {'2.4': 2198}) + @profiling.function_call_count(3110, {'2.4': 2198}) def test_profile_7_multiview(self): self.test_baseline_7_multiview() diff --git a/test/profiling/zoomark_orm.py b/test/profiling/zoomark_orm.py index 784bb35a2..3fff96e1a 100644 --- a/test/profiling/zoomark_orm.py +++ b/test/profiling/zoomark_orm.py @@ -298,11 +298,11 @@ class ZooMarkTest(TestBase): def test_profile_2_insert(self): self.test_baseline_2_insert() - @profiling.function_call_count(7305) + @profiling.function_call_count(6765) def test_profile_3_properties(self): self.test_baseline_3_properties() - @profiling.function_call_count(25760) + @profiling.function_call_count(23957) def test_profile_4_expressions(self): self.test_baseline_4_expressions() |
