Closed
Description
#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.