diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-05-29 02:57:33 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-05-29 02:57:33 +0000 |
commit | c12b48b62e4f94a651eec634ca74a028e4b3d760 (patch) | |
tree | d2c2bc1f751e454e64eaa6d2b8373e3e9376a5db /lib/sqlalchemy/sql_util.py | |
parent | 9f5443a2b63e0fb9935b8593ca6b6e34ba0d40b0 (diff) | |
download | sqlalchemy-c12b48b62e4f94a651eec634ca74a028e4b3d760.tar.gz |
connection more careful about checking if its closed before operations
small fix to table sort if no tables
unit test tweaks
Diffstat (limited to 'lib/sqlalchemy/sql_util.py')
-rw-r--r-- | lib/sqlalchemy/sql_util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql_util.py b/lib/sqlalchemy/sql_util.py index e3170ebce..0728bba47 100644 --- a/lib/sqlalchemy/sql_util.py +++ b/lib/sqlalchemy/sql_util.py @@ -27,7 +27,8 @@ class TableCollection(object): seq.append( node.item ) for child in node.children: to_sequence( child ) - to_sequence( head ) + if head is not None: + to_sequence( head ) if reverse: sequence.reverse() return sequence |