question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Keep unknown property when getting url from database metadata

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cheenamalhotracommented, Sep 12, 2017

Thanks @hypnoce, we are looking into the issue and will keep you posted!

0reactions
ajlamcommented, Sep 21, 2017

Closing this issue. @hypnoce, please let us know if you have any additional questions.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found