[jOOQ/jOOQ#13054] java.lang.IllegalArgumentException: Cannot create a
VALUES() constructor with an empty set of rows when using JSON_ARRAY(ABSENT ON NULL) in PostgreSQL
This commit is contained in:
parent
86913f438b
commit
1f1831fbcd
@ -145,7 +145,7 @@ implements
|
||||
|
||||
case POSTGRES:
|
||||
case YUGABYTEDB:
|
||||
if (onNull == JSONOnNull.ABSENT_ON_NULL) {
|
||||
if (onNull == JSONOnNull.ABSENT_ON_NULL && !mapped.isEmpty()) {
|
||||
Row1[] rows = map(fields, f -> row(f), Row1[]::new);
|
||||
Table<?> t = values(rows).as("t", "a");
|
||||
Field<?> a = t.field("a");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user