diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-01-02 19:45:05 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-01-02 19:45:05 +0000 |
commit | 023cc62bfc77a8f6fcba6226742c2f1c70561a34 (patch) | |
tree | e297ac8c23b734660eec08e4d24d104041a20d17 /lib/sqlalchemy/sql/compiler.py | |
parent | eb1a7c1bdf65547e701e26679b0ed4635534728a (diff) | |
download | sqlalchemy-023cc62bfc77a8f6fcba6226742c2f1c70561a34.tar.gz |
- sqlalchemy.sql.expression.Function is now a public
class. It can be subclassed to provide user-defined
SQL functions in an imperative style, including
with pre-established behaviors. The postgis.py
example illustrates one usage of this.
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 31fc9ae1e..0430f053b 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -463,7 +463,7 @@ class DefaultCompiler(engine.Compiled): not isinstance(column.table, sql.Select): return _CompileLabel(column, sql._generated_label(column.name)) elif not isinstance(column, (sql._UnaryExpression, sql._TextClause, sql._BindParamClause)) \ - and (not hasattr(column, 'name') or isinstance(column, sql._Function)): + and (not hasattr(column, 'name') or isinstance(column, sql.Function)): return _CompileLabel(column, column.anon_label) else: return column |