Skip to content

SimpleDriverDataSource doesn't use the connectionProperties specified [SPR-9461] #14096

@spring-projects-issues

Description

@spring-projects-issues

Thomas Risberg opened SPR-9461 and commented

The SimpleDriverDataSource/AbstractDriverBasedDataSource doesn't use the provided connectionProperties. They get lost when a new Properties instance is created. The current code uses:

Properties props = new Properties(getConnectionProperties());

should use:

Properties props = new Properties();
props.addAll(getConnectionProperties());

That way the provided properties get copied over.


Affects: 3.0.7, 3.1.1, 3.2 M1

Referenced from: commits 5d9ad5b, f3d0beb, 20c4ba4, cd8d72e

Backported to: 3.1.4

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions