From 98f41bd6a851120c3798f38dfc2d0096735aa694 Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Tue, 26 Oct 2010 15:12:14 +0800 Subject: [PATCH] HHH-5168 DB2Dialect generates CROSS JOINs which aren't supported --- .../src/main/java/org/hibernate/dialect/DB2Dialect.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java index 6f59993c09..88ea5a8b0c 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java @@ -418,6 +418,10 @@ public class DB2Dialect extends Dialect { return false; } + //DB2 v9.1 doesn't support 'cross join' syntax + public String getCrossJoinSeparator() { + return ", "; + } // Overridden informational metadata ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ public boolean supportsEmptyInList() {