Skip to content

Commit 2fb4775

Browse files
MoadElfatihigavinking
authored andcommitted
remove version check that are always true
1 parent 7e4382f commit 2fb4775

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -689,11 +689,10 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
689689
functionFactory.jsonArrayInsert_mysql();
690690
functionFactory.regexpLike_regexp();
691691

692-
if ( getMySQLVersion().isSameOrAfter( 8 ) ) {
693-
functionFactory.unnest_emulated();
694-
functionFactory.jsonTable_mysql();
695-
functionFactory.regexpLike();
696-
}
692+
functionFactory.unnest_emulated();
693+
functionFactory.jsonTable_mysql();
694+
functionFactory.regexpLike();
695+
697696
if ( supportsRecursiveCTE() ) {
698697
functionFactory.generateSeries_recursive( getMaximumSeriesSize(), false, false );
699698
}

hibernate-core/src/main/java/org/hibernate/dialect/OracleDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
403403
functionFactory.jsonValue_oracle();
404404
functionFactory.jsonQuery_oracle();
405405
functionFactory.jsonExists_oracle();
406-
functionFactory.jsonObject_oracle( getVersion().isSameOrAfter( 19 ) );
406+
functionFactory.jsonObject_oracle( true );
407407
functionFactory.jsonArray_oracle();
408408
functionFactory.jsonArrayAgg_oracle();
409409
functionFactory.jsonObjectAgg_oracle();

0 commit comments

Comments
 (0)