diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-21 11:15:06 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-21 11:15:06 -0500 |
commit | 851a3a362ee5e05b8438f92e2e1df63c68f79d68 (patch) | |
tree | 2d862d02a1369d1730d78c933e09b709d2ef8bf6 /lib/sqlalchemy/sql/coercions.py | |
parent | 05a31f2708590161d4b3b4c7ff65196c99b4a22b (diff) | |
download | sqlalchemy-851a3a362ee5e05b8438f92e2e1df63c68f79d68.tar.gz |
Revert "Implement support for functions as FROM with columns clause support"
This reverts commit 05a31f2708590161d4b3b4c7ff65196c99b4a22b.
Atom has this little button called "push" and just pushes to master,
I wasn't even *on* master. oops
Diffstat (limited to 'lib/sqlalchemy/sql/coercions.py')
-rw-r--r-- | lib/sqlalchemy/sql/coercions.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/sqlalchemy/sql/coercions.py b/lib/sqlalchemy/sql/coercions.py index b5b5082e6..05e0a4fcf 100644 --- a/lib/sqlalchemy/sql/coercions.py +++ b/lib/sqlalchemy/sql/coercions.py @@ -431,20 +431,6 @@ class ExpressionElementImpl(_ColumnCoercions, RoleImpl): except exc.ArgumentError as err: self._raise_for_expected(element, err=err) - def _raise_for_expected(self, element, argname=None, resolved=None, **kw): - if isinstance(element, roles.AnonymizedFromClauseRole): - advice = ( - "To create a " - "column expression from a FROM clause row " - "as a whole, use the .record() method." - ) - else: - advice = None - - return super(ExpressionElementImpl, self)._raise_for_expected( - element, argname=argname, resolved=resolved, advice=advice, **kw - ) - class BinaryElementImpl(ExpressionElementImpl, RoleImpl): @@ -611,13 +597,6 @@ class ColumnArgumentOrKeyImpl(_ReturnsStringKey, RoleImpl): __slots__ = () -class StrAsPlainColumnImpl(_CoerceLiterals, RoleImpl): - __slots__ = () - - def _text_coercion(self, element, argname=None): - return elements.ColumnClause(element) - - class ByOfImpl(_CoerceLiterals, _ColumnCoercions, RoleImpl, roles.ByOfRole): __slots__ = () |