Skip to content

Commit b0cfa82

Browse files
committed
[#1533] Return data type float for db type real with MSSQL
For schema validation
1 parent 33fb338 commit b0cfa82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ protected int dataTypeCode(String typeName) {
252252
typeName.toLowerCase().startsWith( "double" ) ) {
253253
return Types.DOUBLE;
254254
}
255+
if ( typeName.equalsIgnoreCase( "real" ) ) {
256+
return Types.FLOAT;
257+
}
255258
return super.dataTypeCode( typeName );
256259
}
257260

0 commit comments

Comments
 (0)