In Coerce use the qualified name instead of unqualified so that fields are equal again when compared to each other

The Coerce'ed field renders the full qualified name in SQL, but the field-name is used for comparison, so the name should match the rendered SQL
This commit is contained in:
Dennis Hoersch 2018-09-10 16:40:00 +02:00 committed by GitHub
parent 8440048be9
commit 136c8ef004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ final class Coerce<T> extends AbstractField<T> {
private final Field<?> field;
public Coerce(Field<?> field, DataType<T> type) {
super(field.getUnqualifiedName(), type);
super(field.getQualifiedName(), type);
this.field = (field instanceof Coerce) ? ((Coerce<?>) field).field : field;
}