diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java index 94d186fce6..e0bae5495d 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java @@ -237,7 +237,7 @@ public class MariaDBDialect extends MySQLDialect { @Override public boolean supportsInsertReturning() { - return true; + return getVersion().isSameOrAfter( 10, 5 ); } @Override