[jOOQ/jOOQ#8944] Workaround for Db2

In Db2, it is currently not possible to put scalar subqueries in JSON_OBJECT()'s VALUE clause, see https://stackoverflow.com/q/64350131/521799
This commit is contained in:
Lukas Eder 2020-10-14 11:24:11 +02:00
parent ffd0d66576
commit 46e32fcef7

View File

@ -37,6 +37,7 @@
*/
package org.jooq.impl;
import static org.jooq.impl.DSL.coalesce;
import static org.jooq.impl.Keywords.K_FORMAT;
import static org.jooq.impl.Keywords.K_JSON;
import static org.jooq.impl.Keywords.K_KEY;
@ -92,6 +93,12 @@ final class JSONEntryImpl<T> extends AbstractQueryPart implements JSONEntry<T> {
case MARIADB:
case MYSQL:
case POSTGRES: