Skip to content

Database.SQL_SERVER should set more recent Hibernate dialect with Spring 4.3.x [SPR-15255] #19820

Closed
@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-15255 and commented

See this spring boot issue

When the Database is set to SQL_SERVER, HibernateJpaVendorAdapter#determineDatabaseDialectClass sets the dialect to org.hibernate.dialect.SQLServerDialect. However there are multiple flavours of that dialect:

Microsoft SQL Server 2000	org.hibernate.dialect.SQLServerDialect
Microsoft SQL Server 2005	org.hibernate.dialect.SQLServer2005Dialect
Microsoft SQL Server 2008	org.hibernate.dialect.SQLServer2008Dialect

Ironically enough, if we don't see the dialect, Hibernate manages to detect the right one (in this particular case at least).

Should we consider stopping providing a dialect for SQL Server since we can't know which database is in use?


Affects: 4.3.6

Issue Links:

Referenced from: commits 7ed4884

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions