From c7312cc508eadc9e85a3de0dc56c9906dccdf7a1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 19 Jul 2015 17:56:18 -0400 Subject: - changelog for #3459, fixes #3459 - test for .cast() method has no good place now except for test_cast in test_compiler.py --- lib/sqlalchemy/sql/elements.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy') diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index 4af1e4463..a44c308eb 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -847,7 +847,10 @@ class ColumnElement(operators.ColumnOperators, ClauseElement): def cast(self, type_): """Produce a type cast, i.e. ``CAST( AS )``. - This is a shortcut to the :func:`.cast` function. + This is a shortcut to the :func:`~.expression.cast` function. + + .. versionadded:: 1.0.7 + """ return Cast(self, type_) -- cgit v1.2.1