// ... and also for enum types
else if (EnumType.class.isAssignableFrom(type)) {
render.sql(getBindVariable(render));
// [#968] Don't cast "synthetic" enum types (note, val can be null!)
EnumType e = (EnumType) type.getEnumConstants()[0];
Schema schema = e.getSchema();
if (schema != null) {
render.sql("::");
schema = using(render.configuration()).map(schema);
if (schema != null && TRUE.equals(render.configuration().settings().isRenderSchema())) {
render.visit(schema);
render.sql(".");
}
render.visit(name(e.getName()));
}
}
else {
render.sql(getBindVariable(render));