Issue Details (XML | Word | Printable)

Key: NUCRDBMS-553
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Store RDBMS

Map<Key, Value> where formed with FK, with value stored in key doesn't handle clear/remove correctly

Created: 31/Aug/11 10:33 AM   Updated: 03/Oct/11 07:38 AM   Resolved: 31/Aug/11 12:11 PM
Component/s: ORM
Affects Version/s: 2.0.5, 2.1.4, 2.2.4, 3.0.0.release
Fix Version/s: 3.0.2


 Description  « Hide
Has never worked properly (just review the RDBMSFKMapStore code) but not shown up by any current testcase

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 31/Aug/11 12:11 PM
SVN trunk now does as follows

key stored in value:
if value dependent -> delete value
else if owner mapping nullable -> null owner FK in value
else delete value
if key dependent
-> if not deleting value -> null key FK in value
delete key

and value stored in key: as above except swap key<->value