[jOOQ/jOOQ#12425] OSS edition fix
This commit is contained in:
parent
6d0df26e2d
commit
10116e29c4
@ -37,35 +37,38 @@
|
||||
*/
|
||||
package org.jooq.impl;
|
||||
|
||||
// ...
|
||||
import static org.jooq.impl.Names.N_XMLDOCUMENT;
|
||||
|
||||
import org.jooq.Context;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.XML;
|
||||
|
||||
/**
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
final class XMLDocument extends AbstractField<XML> {
|
||||
|
||||
private final Field<XML> content;
|
||||
|
||||
XMLDocument(Field<XML> content) {
|
||||
super(N_XMLDOCUMENT, SQLDataType.XML);
|
||||
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void accept(Context<?> ctx) {
|
||||
if (ctx.family() == JAVA) {
|
||||
ctx.sql("xmldocument(").visit(content).sql(')');
|
||||
return;
|
||||
}
|
||||
|
||||
ctx.visit(N_XMLDOCUMENT).sql('(').visit(content).sql(')');
|
||||
}
|
||||
}
|
||||
|
||||
/* [/pro] */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user