From 9e56fe685029e62b779a1f3b35007cdd78ecb967 Mon Sep 17 00:00:00 2001 From: Barry LaFond Date: Tue, 6 Feb 2024 15:33:38 -0600 Subject: [PATCH] [#1641] added postgres datatype codes for array types --- .../PostgreSqlReactiveInformationExtractorImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hibernate-reactive-core/src/main/java/org/hibernate/reactive/provider/service/PostgreSqlReactiveInformationExtractorImpl.java b/hibernate-reactive-core/src/main/java/org/hibernate/reactive/provider/service/PostgreSqlReactiveInformationExtractorImpl.java index b041e78e4..d6bcb00a3 100644 --- a/hibernate-reactive-core/src/main/java/org/hibernate/reactive/provider/service/PostgreSqlReactiveInformationExtractorImpl.java +++ b/hibernate-reactive-core/src/main/java/org/hibernate/reactive/provider/service/PostgreSqlReactiveInformationExtractorImpl.java @@ -141,7 +141,7 @@ protected T processImportedKeysResultSet( @Override protected int dataTypeCode(String typeName) { - // Copied from PostgreSQLDialect. + // Copied from PostgreSQLDialect.resolveSqlTypeCode // Not ideal, but it should work for now // It would be nice to be able to get the correct code some way switch ( typeName ) { @@ -162,6 +162,11 @@ protected int dataTypeCode(String typeName) { return SqlTypes.TIMESTAMP_UTC; case "bytea": return Types.VARBINARY; + case "_numeric": + case "_bool": + case "_int8": + case "_varchar": + return Types.ARRAY; default: return 0; }