diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-03-04 18:20:09 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-03-04 18:20:09 +0000 |
commit | 8e0ea84c333aac2b28326084a03c48aa4a212f45 (patch) | |
tree | ee5354f25280b6a8330da99893bb36f9229027d0 /lib/sqlalchemy/sql/util.py | |
parent | 2f0a16365660ca0f1c910bba2aa62b6177d88044 (diff) | |
download | sqlalchemy-8e0ea84c333aac2b28326084a03c48aa4a212f45.tar.gz |
- fixed bug which was preventing UNIONS from being cloneable,
[ticket:986]
Diffstat (limited to 'lib/sqlalchemy/sql/util.py')
-rw-r--r-- | lib/sqlalchemy/sql/util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py index 70a1dcc96..9954811d6 100644 --- a/lib/sqlalchemy/sql/util.py +++ b/lib/sqlalchemy/sql/util.py @@ -152,6 +152,12 @@ class AbstractClauseProcessor(object): This class implements its own visit-and-copy strategy but maintains the same public interface as visitors.ClauseVisitor. + + The convert_element() method receives the *un-copied* version of each element. + It can return a new element or None for no change. If None, the element + will be cloned afterwards and added to the new structure. Note this is the + opposite behavior of visitors.traverse(clone=True), where visitors receive + the cloned element so that it can be mutated. """ __traverse_options__ = {'column_collections':False} |