diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-05-18 16:08:33 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-05-18 16:21:54 -0400 |
commit | 53af60b3536221f2503af29c1e90cf9db1295faf (patch) | |
tree | 13d5e142ed0759e63fb4fee7aa244519703e42ed /lib/sqlalchemy/sql/util.py | |
parent | de1fd55af4ef352ebbc95e03d868aab2995a8261 (diff) | |
download | sqlalchemy-53af60b3536221f2503af29c1e90cf9db1295faf.tar.gz |
Streamline visitors.iterate
This method might be used more significantly in the
ORM refactor, so further refine it.
* all get_children() methods now work entirely based on iterators.
Basically only select() was sensitive to this anymore and it now
chains the iterators together
* remove all kinds of flags like column_collections, schema_visitor
that apparently aren't used anymore.
* remove the "depthfirst" visitors as these don't seem to be
used either.
* make sure select() yields its columns first as these will be used
to determine the current mapper.
Change-Id: I05273a2d5306a57c2d1b0979050748cf3ac964bf
Diffstat (limited to 'lib/sqlalchemy/sql/util.py')
-rw-r--r-- | lib/sqlalchemy/sql/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py index ca5bde091..0a67ff9bf 100644 --- a/lib/sqlalchemy/sql/util.py +++ b/lib/sqlalchemy/sql/util.py @@ -267,7 +267,7 @@ def find_tables( _visitors["table"] = tables.append - visitors.traverse(clause, {"column_collections": False}, _visitors) + visitors.traverse(clause, {}, _visitors) return tables |