]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
since we are calling traverse_single within ddl.py, call traverse_single at the entry...
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 16 Apr 2010 17:48:45 +0000 (13:48 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 16 Apr 2010 17:48:45 +0000 (13:48 -0400)
completely controls traversal

lib/sqlalchemy/engine/base.py
test/aaa_profiling/test_zoomark.py

index 5068167c3ae890364f3d44a169e1ece42ed6ffd4..dea13e16cf9f7acc64a89808dfc80400a873fdca 100644 (file)
@@ -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()
index d62a87e7d3c555a836cb84d13a1c78e24f64bdd0..0b703b368a4d81cdbd4cafa9c008913a7ac2a8f4 100644 (file)
@@ -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()