From 00edf484834abd3a63212668d49214e74fea2046 Mon Sep 17 00:00:00 2001 From: Gavin Date: Mon, 19 Dec 2022 16:30:56 +0100 Subject: [PATCH] fix version # of support for 'insert returning' on Maria --- .../src/main/java/org/hibernate/dialect/MariaDBDialect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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