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:
parent
8440048be9
commit
136c8ef004
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user