[jOOQ/jOOQ#13163] Compilation error when PostgreSQL stored function has

an ANYARRAY data type reference
This commit is contained in:
Lukas Eder 2022-02-28 18:00:00 +01:00
parent 556e0b4d85
commit e7890e4671
2 changed files with 2 additions and 2 deletions

View File

@ -9120,7 +9120,7 @@ public class JavaGenerator extends AbstractGenerator {
sqlDataTypeRef =
out.ref(SQLDataType.class)
+ '.'
+ literal;
+ (literal == null ? "OTHER" : literal);
sb.append(sqlDataTypeRef);

View File

@ -2845,7 +2845,7 @@ public abstract class AbstractDatabase implements Database {
case H2:
case POSTGRES:
case YUGABYTEDB:
return "ARRAY".equals(upper) || upper.endsWith(" ARRAY");
return "ARRAY".equals(upper) || upper.endsWith(" ARRAY") || upper.equals("ANYARRAY");
case HSQLDB: