[jOOQ/jOOQ#12139] MULTISET as JSON emulation using JSON_ARRAY must use NULL ON NULL clause

This commit is contained in:
Lukas Eder 2021-07-08 21:04:23 +02:00
parent 410bbf596f
commit aae2e82602

View File

@ -336,7 +336,7 @@ final class Multiset<R extends Record> extends AbstractField<Result<R>> {
return jsonArrayAgg(
returningClob(ctx, jsonArray(
map(fields.fields(), (f, i) -> agg ? f : DSL.field(fieldName(i), f.getDataType()))
))
).nullOnNull())
);
}
}
@ -360,7 +360,7 @@ final class Multiset<R extends Record> extends AbstractField<Result<R>> {
return jsonbArrayAgg(
returningClob(ctx, jsonbArray(
map(fields.fields(), (f, i) -> agg ? f : DSL.field(fieldName(i), f.getDataType()))
))
).nullOnNull())
);
}
}