diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-01-04 01:00:42 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-01-04 01:00:42 +0000 |
commit | 1e69e26924facebcad8b87eeebdcdde71851bf00 (patch) | |
tree | a4b10cadf2d87cc59bb430e5c528e26e052137f9 /lib/sqlalchemy/sql/compiler.py | |
parent | efb89f211319b19231260572422e4814639cace7 (diff) | |
download | sqlalchemy-1e69e26924facebcad8b87eeebdcdde71851bf00.tar.gz |
add anonymous labels to function calls
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 9e8b0f488..35a12efe3 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -463,7 +463,7 @@ class DefaultCompiler(engine.Compiled): column.table is not None and \ not isinstance(column.table, sql.Select): return column.label(column.name) - elif not isinstance(column, (sql._UnaryExpression, sql._TextClause)) and not hasattr(column, 'name'): + elif not isinstance(column, (sql._UnaryExpression, sql._TextClause)) and (not hasattr(column, 'name') or isinstance(column, sql._Function)): return column.label(None) else: return column |