mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Prior to this commit, SqlScriptsTestExecutionListener unwrapped data sources wrapped in an InfrastructureProxy or a scoped proxy, but it did not unwrap a data source wrapped in a TransactionAwareDataSourceProxy. Consequently, the sameDataSource() check failed in the latter case, preventing execution of @Sql scripts. To address that, this commit revises sameDataSource() to unwrap a TransactionAwareDataSourceProxy as well, analogous to the implementations of setDataSource() in DataSourceTransactionManager, JpaTransactionManager, and HibernateTransactionManager. Closes gh-36611