Skip to content

Commit cb0ee18

Browse files
committed
Fix test on MySql
1 parent 254ab48 commit cb0ee18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NHibernate.Test/Async/Linq/EnumTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected override HbmMapping GetMappings()
4848
rc.Property(x => x.NullableEnum, m =>
4949
{
5050
m.Type(_enumType);
51-
m.Formula($"(case when Enum = {_unspecifiedValue} then null else Enum end)");
51+
m.Formula($"(case when `Enum` = {_unspecifiedValue} then null else `Enum` end)");
5252
});
5353
rc.ManyToOne(x => x.Other, m => m.Cascade(Mapping.ByCode.Cascade.All));
5454
});

src/NHibernate.Test/Linq/EnumTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected override HbmMapping GetMappings()
3535
rc.Property(x => x.NullableEnum, m =>
3636
{
3737
m.Type(_enumType);
38-
m.Formula($"(case when Enum = {_unspecifiedValue} then null else Enum end)");
38+
m.Formula($"(case when `Enum` = {_unspecifiedValue} then null else `Enum` end)");
3939
});
4040
rc.ManyToOne(x => x.Other, m => m.Cascade(Mapping.ByCode.Cascade.All));
4141
});

0 commit comments

Comments
 (0)