-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ComboPooledDataSource not compatible with apache shardingsphere #19607
Milestone
Comments
Hi @silversteak |
I've reproduced this issue.
|
This could be fixed by implementing |
Hi @silversteak |
Hi @TeslaCN Yes am interested in fixing it. I will provide it soon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ComboPooledDataSource not compatible with apache shardingsphere.
I am currently trying to implement shardingshpere in my current company's codebase. Previously created an example project using HikariDataSource and it worked fine.
Now in companies code base uses c3p0.ComboPooledDataSource as datasource. So when am trying to create shardingshphere datasource using this datasource its failing.
In HikariDatasource, the standardProps are coming correct.

But in c3p0.ComboPooledDataSource, the standardProps are giving just password only.

The main cause of the issue is that in c3p0.ComboPooledDataSource, the properties are stored in different format.

Like username as user and url as jdbcUrl.
Thats why am getting a nullpointer exception here since both the keys are username and url
I was under the assumption that apache shardingsphere is compatible with all kinds of datasource. I am stuck here.
Please help me out if possible.
Datasource Config
pom.xml
The text was updated successfully, but these errors were encountered: