From: Mike Bayer Date: Fri, 16 Apr 2010 17:48:45 +0000 (-0400) Subject: since we are calling traverse_single within ddl.py, call traverse_single at the entry... X-Git-Tag: rel_0_6_0~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=490a01c09713973e81729e23e71ed64530a795c3;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git since we are calling traverse_single within ddl.py, call traverse_single at the entrypoint as well so that ddl.py completely controls traversal --- diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 5068167c3a..dea13e16cf 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -1532,7 +1532,7 @@ class Engine(Connectable, log.Identified): else: conn = connection try: - visitorcallable(self.dialect, conn, **kwargs).traverse(element) + visitorcallable(self.dialect, conn, **kwargs).traverse_single(element) finally: if connection is None: conn.close() diff --git a/test/aaa_profiling/test_zoomark.py b/test/aaa_profiling/test_zoomark.py index d62a87e7d3..0b703b368a 100644 --- a/test/aaa_profiling/test_zoomark.py +++ b/test/aaa_profiling/test_zoomark.py @@ -323,7 +323,7 @@ class ZooMarkTest(TestBase): metadata = MetaData(engine) engine.connect() - @profiling.function_call_count(3178, {'2.4': 1816}) + @profiling.function_call_count(3012, {'2.4': 1716}) def test_profile_1_create_tables(self): self.test_baseline_1_create_tables()