[#3122] Runtime Schema mapping doesn't work for UDT

This commit is contained in:
Lukas Eder 2014-03-12 17:30:27 +01:00
parent c591ebada9
commit b1bb877abc

View File

@ -135,7 +135,14 @@ public class UDTImpl<R extends UDTRecord<R>> extends AbstractQueryPart implement
@Override
public final void toSQL(RenderContext context) {
context.literal(getName());
Schema mappedSchema = Utils.getMappedSchema(context.configuration(), getSchema());
if (mappedSchema != null) {
context.visit(mappedSchema);
context.sql(".");
}
context.visit(DSL.name(getName()));
}
@Override