Skip to content

Avoid loading XML files for default SQL exception translation #28216

Closed
@wilkinsona

Description

@wilkinsona

#25335 allowed the use of SQLErrorCodeSQLExceptionTranslator to be disabled by configuring spring.ignore.xml to true. This successfully reduced the footprint when running in a GraalVM native image, but at the cost of potentially different exception translation. To ensure consistent behavior, it would be useful if SQLErrorCodeSQLExceptionTranslator could be used without loading sql-error-codes.xml.

From @jhoeller:

For our default purposes, we could even keep those error code mappings in a hard-coded class - and possibly get rid of the default sql-error-codes.xml file completely, just supporting that file format for user-provided files.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)theme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions