[Feature] Keep unknown property when getting url from database metadata
See original GitHub issueI’m writing features for jdbc distributed tracing. In particular, the ability to define the remote service name inside the connection string that will be parsed. Unfortunately, unknown tokens are removed from the final properties map.
final Connection connection = DriverManager.getConnection("sqlserver://localhost;databaseName=master;foo=bar", "user", "password");
connection.getMetaData().getURL().contains("foo=bar"); //returns false
Indeed, in SQLServerDriver.java#L576, null is returned for unknown tokens.
A quick fix would be to return the name instead of null but it might break some other logic in the code (even if the test passes locally on my machine)
What do you think of such feature. Does it make sense ?
Thanks (PS: it works with other databases such as MySQL)
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Spring boot unable to determine jdbc url from datasouce (mysql)
I am trying to load a MySQL database into ...
Read more >STS on Eclipse: quick fix for "unknown property" always shows ...
When you enter a new unknown property in application.properties , a warning shows up saying it's an unknown property.
Read more >Setting the connection properties - JDBC Driver for SQL Server
(Version 6.0+) Use this property to connect to a database using an access token. accessToken can't be set using the connection URL.
Read more >Error "unknown property" in the Upsert response - OData API
When trying to Upsert data using OData API, you get below error message: <d:message>unknown property <fieldName> for <entityName></d:message>.
Read more >Configuration Metadata - Spring
Spring Boot jars include metadata files that provide details of all supported configuration properties. The files are designed to let IDE ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @hypnoce, we are looking into the issue and will keep you posted!
Closing this issue. @hypnoce, please let us know if you have any additional questions.