mapping to joins has various dupe column/pk issues
Issue #1896
resolved
attached patch has some notes on this
Comments (6)
-
reporter -
reporter the most recent patch approaches the problem cleanly. Inheritance relationships can override a column exactly once. All other implicit overrides raise. Included is the capability for include_properties and exclude_properties to include columns. We can backport the include/exclude fix, as well as the error message as a warning only when cols are implicitly bundled, to 0.6.
-
reporter the 0.6 version of this is in 092fbb40eb72d08a9eb433a6ac182723af774201.
-
reporter note this ticket is intimately related to
#1892. -
reporter - changed status to resolved
one extra test in ccd4eeeb39b968641cdaee699ad2732ab903e793
-
reporter - removed milestone
Removing milestone: 0.7.0 (automated comment)
- Log in to comment
OK, I think with some cleanup, we can turn it into the equivalent this (the _allow_inserts flag and all has to be solidified):
where the exception should be along the lines of, "won't implicitly append col Y to explicit column list for attribute X. Assign col Y to an attribute explicitly"
that way no surprise happens at least when a column has been named explicitly. Because it actually is happening a lot in tests and I didn't even notice it myself. When a mapping to a join implicitly puts them together, not sure what we should be doing - in inheritance cases it seems correct.