Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
10.7.1.1
-
None
-
Low
-
Repro attached
-
Embedded/Client difference
Description
The embedded driver strips away all connection attributes before returning the URL from DatabaseMetaData.getURL(). The client driver also returns the connection attributes (except user and password, see DERBY-559).
The attached repro (GetURL.java) demonstrates this behaviour (note that it uses both connection attributes directly in the URL and connection attributes in a java.util.Properties object):
Connecting with URL jdbc:derby:wombat;create=true and properties
{territory=no_NO}getURL() => jdbc:derby:wombat
Connecting with URL jdbc:derby://localhost/wombat;create=true and properties {territory=no_NO}
getURL() => jdbc:derby://localhost:1527/wombat;create=true;territory=no_NO