#1457: Self-referential relation fails silently if an entity references itself
--------------------------------+-------------------------------------------
Reporter: ants | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone: 0.5.xx
Component: orm | Severity: minor - half an hour
Resolution: | Keywords:
Status_field: awaiting triage |
--------------------------------+-------------------------------------------
Changes (by zzzeek):
* severity: no triage selected yet => minor - half an hour
* milestone: => 0.5.xx
Comment:
This is a dupe of #1449, and in response to that I added documentation at
http://www.sqlalchemy.org/docs/05/mappers.html#rows-that-point-to-
themselves-mutually-dependent-rows to explain what's going on here very
explicitly.
I'm not sure offhand how this condition could be detected unless its a
simple "if child is obj and post_update is False" in dependency.py. not
sure if that covers it.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1457#comment:1>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|