Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ClientDriver ignores Properties object in connect(String url, Properties connectionProperties) method Send both the properties specified in the info parameter and those specified in the url to the server in the RDBNAM. user and password attributes will be the exception. user and password will be sent via the standard DRDA mechanism and excluded from the attributes sent with RDBNAM whether specified with the url or info properties. As a result of the combination, the order of attributes sent to the server may be different than originally specified in the URL. Also added additional driver tests and attrbute tests to checkDriver. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@289227 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
12 changed files
with
447 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
java/testing/org/apache/derbyTesting/functionTests/master/DerbyNet/checkDriver.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
jdbcCompliant() = true | ||
driver.getMajorVersion() = EXPECTED VERSION | ||
driver.getMinorVersion() = EXPECTED VERSION | ||
checking acceptsURL(jdbc:derby:wombat;create=true) | ||
checking acceptsURL(jdbc:derby://localhost:1527/wombat;create=true) | ||
checking acceptsURL(jdbc:derby:net://localhost:1527/wombat;create=true) | ||
checking acceptsURL(jdbc:db2j:wombat;create=true) |
44 changes: 44 additions & 0 deletions
44
java/testing/org/apache/derbyTesting/functionTests/master/DerbyNetClient/checkDriver.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
jdbcCompliant() = true | ||
driver.getMajorVersion() = EXPECTED VERSION | ||
driver.getMinorVersion() = EXPECTED VERSION | ||
checking acceptsURL(jdbc:derby:wombat;create=true) | ||
checking acceptsURL(jdbc:derby://localhost:1527/wombat;create=true) | ||
checking acceptsURL(jdbc:derby:net://localhost:1527/wombat;create=true) | ||
checking acceptsURL(jdbc:db2j:wombat;create=true) | ||
testEmbeddedAttributes() | ||
Connection info for connect(jdbc:derby://localhost:1527/testcreatedb1, {create=true}) | ||
getURL() = jdbc:derby://localhost:1527/testcreatedb1;create=true | ||
getUserName() = APP | ||
CURRENT SCHEMA = APP | ||
Connection info for connect(jdbc:derby://localhost:1527/testcreatedb2;create=true, null) | ||
getURL() = jdbc:derby://localhost:1527/testcreatedb2;create=true | ||
getUserName() = APP | ||
CURRENT SCHEMA = APP | ||
Connection info for connect(jdbc:derby://localhost:1527/testpropdb, {user=APP, password=xxxx}) | ||
getURL() = jdbc:derby://localhost:1527/testpropdb | ||
getUserName() = APP | ||
CURRENT SCHEMA = APP | ||
Connection info for connect(jdbc:derby://localhost:1527/testpropdb;user=testuser;password=testpass, null) | ||
getURL() = jdbc:derby://localhost:1527/testpropdb | ||
getUserName() = testuser | ||
CURRENT SCHEMA = TESTUSER | ||
Connection info for connect(jdbc:derby://localhost:1527/testpropdb;user=testusr, {password=testpass}) | ||
getURL() = jdbc:derby://localhost:1527/testpropdb | ||
getUserName() = testusr | ||
CURRENT SCHEMA = TESTUSR | ||
Connection info for connect(jdbc:derby://localhost:1527/testpropdb;user=testuser;password=testpass, null) | ||
getURL() = jdbc:derby://localhost:1527/testpropdb | ||
getUserName() = testuser | ||
CURRENT SCHEMA = TESTUSER | ||
Expected Exception:08006:DERBY SQL error: SQLCODE: -1, SQLSTATE: 08006, SQLERRMC: Database 'testcreatedb1' shutdown. | ||
testClientAttributes() | ||
Connection info for connect(jdbc:derby://localhost:1527/testpropdb;traceFile=[DERBY_SYSTEM_HOME]\trace.out, {}) | ||
getURL() = jdbc:derby://localhost:1527/testpropdb;traceFile=[DERBY_SYSTEM_HOME]\trace.out | ||
getUserName() = APP | ||
CURRENT SCHEMA = APP | ||
trace file exists | ||
Connection info for connect(jdbc:derby://localhost:1527/testpropdb, {traceFile=[DERBY_SYSTEM_HOME]\trace2.out}) | ||
getURL() = jdbc:derby://localhost:1527/testpropdb;traceFile=[DERBY_SYSTEM_HOME]\trace2.out | ||
getUserName() = APP | ||
CURRENT SCHEMA = APP | ||
trace file exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.