Skip to content

Commit e88997d

Browse files
committed
[#1641] added postgres datatype codes for array types
1 parent 9019164 commit e88997d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/provider/service/PostgreSqlReactiveInformationExtractorImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected <T> T processImportedKeysResultSet(
141141

142142
@Override
143143
protected int dataTypeCode(String typeName) {
144-
// Copied from PostgreSQLDialect.
144+
// Copied from PostgreSQLDialect.resolveSqlTypeCode
145145
// Not ideal, but it should work for now
146146
// It would be nice to be able to get the correct code some way
147147
switch ( typeName ) {
@@ -162,6 +162,11 @@ protected int dataTypeCode(String typeName) {
162162
return SqlTypes.TIMESTAMP_UTC;
163163
case "bytea":
164164
return Types.VARBINARY;
165+
case "_numeric":
166+
case "_bool":
167+
case "_int8":
168+
case "_varchar":
169+
return Types.ARRAY;
165170
default:
166171
return 0;
167172
}

0 commit comments

Comments
 (0)