a non-SQL /entity expression. [ticket:1476]
during a flush. This is currently to support
many-to-many relations from concrete inheritance setups.
Outside of that use case, YMMV. [ticket:1477]
+
+ - Improved error message when query() is called with
+ a non-SQL /entity expression. [ticket:1476]
- sql
- Fixed a bug in extract() introduced in 0.5.4 whereby
return
if not isinstance(column, sql.ColumnElement):
- raise sa_exc.InvalidRequestError("Invalid column expression '%r'" % column)
+ raise sa_exc.InvalidRequestError(
+ "SQL expression, column, or mapped entity expected - got '%r'" % column
+ )
# if the Column is unnamed, give it a
# label() so that mutable column expressions