From dc3d2862eb72af4a0a7a45a3c5a84a24f7619e97 Mon Sep 17 00:00:00 2001 From: Barry LaFond Date: Mon, 5 Feb 2024 14:10:02 -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 b041e78e4f..d6bcb00a34 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; }