From e3eeba9845270efea559f5b58605c42dfb1fea06 Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Thu, 13 Dec 2018 13:08:39 +0200 Subject: [PATCH] HHH-13162 - Upgrade MySQL and MariaDB Dialects as they support UNION ALL --- .../src/main/java/org/hibernate/dialect/MySQL5Dialect.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java index c58320cf33..3f79ae8fb4 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java @@ -60,4 +60,9 @@ public class MySQL5Dialect extends MySQLDialect { public String getQueryHintString(String query, String hints) { return IndexQueryHintHandler.INSTANCE.addQueryHints( query, hints ); } + + @Override + public boolean supportsUnionAll() { + return true; + } }