selectConflictingRow iterates through unique fields

Previously the function hardcoded the selection of unique fields so that
if we changed the unique constraint we had to update this function too.

Change-Id: If8d764f877ff87cb1a96d1111a5d85d06eac7a40
Merged-In: If8d764f877ff87cb1a96d1111a5d85d06eac7a40
Fixes: 69267086
Test: manual
1 file changed