[jOOQ/jOOQ#9242] Fix implementation of AbstractKey#equals(Object)

Since keys can be unnamed, the implementation must also compare using
the `fields` instance field.
This commit is contained in:
Knut Wannheden 2019-09-18 14:44:53 +02:00
parent f128109e46
commit 9b9622f2bc

View File

@ -127,6 +127,8 @@ abstract class AbstractKey<R extends Record> implements Key<R> {
}
else if (!table.equals(other.table))
return false;
else if (!Arrays.equals(fields, other.fields))
return false;
return true;
}