From ca4474159ef3d557753e9b547aaa9d2e0b5f191c Mon Sep 17 00:00:00 2001 From: Gavin Date: Mon, 26 Dec 2022 01:14:11 +0100 Subject: [PATCH] fix test for case-sensitive databases --- .../hibernate/orm/test/annotations/sharedfk/AbstractChild.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/sharedfk/AbstractChild.java b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/sharedfk/AbstractChild.java index a8740541c4..b599b880db 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/sharedfk/AbstractChild.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/sharedfk/AbstractChild.java @@ -9,7 +9,7 @@ import static jakarta.persistence.DiscriminatorType.INTEGER; @Table(name = " INHERITANCE_TAB") //@DiscriminatorColumn(name = "DISC") @DiscriminatorFormula(discriminatorType = INTEGER, - value = "case when value1 is not null then 1 when value2 is not null then 2 end") + value = "CASE WHEN VALUE1 IS NOT NULL THEN 1 WHEN VALUE2 IS NOT NULL THEN 2 END") public abstract class AbstractChild { @Id @GeneratedValue