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
Passing of custom properties is broken when using JDBC Driver's DataSource#getConnection(username,password) method (it works when using DataSource#getConnection()).
Verified with test suite pasted below, second test fails - I get ClickHouse Java Client instead of Agent #1. Verified on:
The text was updated successfully, but these errors were encountered:
piotrp
changed the title
Custom properties don't work with getConnection(username,password) API
Custom properties are lost when using getConnection(username,password)
Jul 3, 2022
Thanks for reporting, and providing code to reproduce the issue.
We should change below line to Properties props = new Properties(); props.putAll(connInfo.getProperties());, because we're not setting default properties.
Update: above change does not solve all problems. Properties will be cached and additional parsing should be avoided when username and password is same as the one specified in URL / Connection Properties.
Passing of custom properties is broken when using JDBC Driver's
DataSource#getConnection(username,password)
method (it works when usingDataSource#getConnection()
).Verified with test suite pasted below, second test fails - I get
ClickHouse Java Client
instead ofAgent #1
. Verified on:The text was updated successfully, but these errors were encountered: