You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The main point of this issue is covered with: #1293
I'll test if this fits my use case.
Anyway, there might be other JDBC options, e.g. for TLS to pass to the underlying database. Therefore it might be nice to pass through all options from the given Url.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.
This issue has been automatically closed due to inactivity. We apologise if this is still an active problem for you, and would ask you to re-open the issue if this is the case.
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
toJdbcDatabaseContainer#createConnection
as follows:public Connection createConnection(String queryString, Properties info) throws SQLException {
in addition to that, please traf
user
andpassword
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.
The text was updated successfully, but these errors were encountered: