realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

RealmObjectSchema.setClassName() should amend pkTable entry

Open stk1m1 opened this issue 10 years ago • 1 comments

Goal

We have covered cases where @PrimaryKey field is renamed or RealmSchema.rename() is involved. When RealmObjectSchema.setClassName() is called, however, it has potential to lose track of @PrimaryKey of a Table. This is addressed by @beeender and should be fixed.

Expected Results

RealmObjectSchema.setClassName() is called, pkTable should be adjusted accordingly.

Actual Results

pkTable is not adjusted as of now 3ff5741 (July 4th, 2016).

Steps & Code to Reproduce

N/A

Code Sample

Version of Realm and tooling

Realm version(s): 1.1.0 Android Studio version: N/A Which Android version and device: N/A

stk1m1 avatar Jul 04 '16 11:07 stk1m1

Fixed by #3149

cmelchior avatar Aug 03 '16 10:08 cmelchior