Skip to content

Please pass JDBC driver info properties back to original database driver #1339

@ajdergute

Description

@ajdergute

It might be nesseccary to pass additional properties to the original database driver, i.e. "user" and "password". To enforce this please add an additional argument Properties to JdbcDatabaseContainer#createConnection as follows:

public Connection createConnection(String queryString, Properties info) throws SQLException {

in addition to that, please traf user and password from this argument if given.

If done, please pass the info object given by

public synchronized Connection connect(String url, Properties info) throws SQLException {

to the createConnection call.

This should also ensure that one is able to use multiple users while testing the database. E.g. for multi tenancy via view or database approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions