[jOOQ/jOOQ#12080] Generate a FORMAT JSON clause in Oracle's JSON_OBJECT if contents are of type JSON

This commit is contained in:
Lukas Eder 2021-06-29 17:32:49 +02:00
parent 6fb60a5364
commit fb6dc22aff

View File

@ -37,7 +37,6 @@
*/
package org.jooq.impl;
// ...
import static org.jooq.impl.DSL.NULL;
import static org.jooq.impl.DSL.coalesce;
import static org.jooq.impl.DSL.field;
@ -59,7 +58,9 @@ import org.jooq.JSONEntryValueStep;
import org.jooq.Param;
// ...
import org.jooq.Record1;
import org.jooq.Scope;
import org.jooq.Select;
import org.jooq.conf.NestedCollectionEmulation;
/**
@ -178,9 +179,6 @@ final class JSONEntryImpl<T> extends AbstractQueryPart implements JSONEntry<T>,
case POSTGRES:
if (field instanceof Param)
if (field.getType() != Object.class)
@ -200,4 +198,12 @@ final class JSONEntryImpl<T> extends AbstractQueryPart implements JSONEntry<T>,
}