[jOOQ/jOOQ#252] Added a comment about PG's understanding of ∅ arrays

This commit is contained in:
Lukas Eder 2022-09-13 08:35:54 +02:00
parent c2be215b9f
commit 6f262cd3a0

View File

@ -525,11 +525,14 @@ public class PostgresUtils {
toPGString0((byte[]) o, sb);
// [#252] Multi dimensional array support
else if (o instanceof Object[] a)
else if (o instanceof Object[] a) {
// [#252] In PostgreSQL "maths" = {}...
if (isDeepEmpty(a))
;
else
toPGArrayString0(a, sb);
}
else
sb.append("\"")
.append(StringUtils.replace(StringUtils.replace(toPGString(o), "\\", "\\\\"), "\"", "\\\""))