From 1c73149d5dd477ae882890e155e87f5dd9e4853f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 7 Feb 2010 00:56:05 +0000 Subject: - FunctionElement subclasses are now directly executable the same way any func.foo() construct is, with automatic SELECT being applied when passed to execute(). - The "type" and "bind" keyword arguments of a func.foo() construct are now local to "func." constructs and are not part of the FunctionElement base class, allowing a "type" to be handled in a custom constructor or class-level variable. --- lib/sqlalchemy/engine/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/engine') diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 6a4fa5d08..98d06a792 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -1194,7 +1194,7 @@ class Connection(Connectable): # poor man's multimethod/generic function thingy executors = { - expression.Function: _execute_function, + expression.FunctionElement: _execute_function, expression.ClauseElement: _execute_clauseelement, Compiled: _execute_compiled, schema.SchemaItem: _execute_default, -- cgit v1.2.1