Schema creation and validation fails for char(n) column mapped to string on SQL Server scince 5.2.11 if globally_quoted_identifiers=true

Description

Schema creation validation fails on SQL Server when we set ddl-auto=validate or create-drop and globally_quoted_identifiers=true and use char( n ) column mapped to String

Works fine in version 5.2.10 and also works fine on H2 database with newer versions but fails on SQL Server:

org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [myColumn] in table [`myTable`]; found [char (Types#CHAR)], but expecting [[char(2)] (Types#VARCHAR)]

Environment

Java 8, mssql-jdbc 6.2.2, SQL Server 2016.

Status

Assignee

Gail Badner

Reporter

Denis Kalgushkin

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Worked in

5.2.10

Components

Affects versions

Priority

Major
Configure