From 0f092f502e71a2872424eca5ae4144a7bc6be4be Mon Sep 17 00:00:00 2001 From: Gavin King Date: Fri, 1 Nov 2024 16:09:46 +0100 Subject: [PATCH] mention change in migration guide Signed-off-by: Gavin King --- migration-guide.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/migration-guide.adoc b/migration-guide.adoc index 71dd79038c..346af27680 100644 --- a/migration-guide.adoc +++ b/migration-guide.adoc @@ -368,6 +368,13 @@ This is now done across the entire set of `hbm.xml` files at once. While most users will never see this change, it might impact integrations which tie-in to XML processing. ==== +[[mysql-varchar]] +== Default DDL type for `char` and `Character` on MySQL + +Previously, `char` and `Character` fields were, by default, mapped to `char(1)` columns by the schema export tool. +However, MySQL treats a `char(1)` containing a single space as an empty string, resulting in broken behavior for some HQL and SQL functions. +Now, `varchar(1)` is used by default. + [[cleanup]] == Cleanup