You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sqlalchemy/sql/coercions.py", line 922, in _post_coercion
assert name is None
Expected behavior
Allowing a name parameter to be set for association tables (unless I'm missing something from the migration notes, in which case sorry!).
Traceback (most recent call last):
File "aliased_error.py", line 27, in <module>
at_alias = aliased(association_table, name="myJoinedTable")
File "/Users/me/.pyenv/versions/2.7.14/lib/python2.7/site-packages/sqlalchemy/orm/util.py", line 1138, in aliased
roles.AnonymizedFromClauseRole, element, name=name, flat=flat
File "/Users/me/.pyenv/versions/2.7.14/lib/python2.7/site-packages/sqlalchemy/sql/coercions.py", line 176, in expect
**kw
File "/Users/me/.pyenv/versions/2.7.14/lib/python2.7/site-packages/sqlalchemy/sql/coercions.py", line 922, in _post_coercion
assert name is None
AssertionError
Versions.
OS: macOS 10.15.7
Python: 2.7.14
SQLAlchemy: 1.4.0b1
Database: SQLite
Have a nice day!
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to use
aliased
with an association table and setting the 'name' argument:An assertion error appears
Expected behavior
Allowing a name parameter to be set for association tables (unless I'm missing something from the migration notes, in which case sorry!).
To Reproduce
Error
Versions.
Have a nice day!
The text was updated successfully, but these errors were encountered: