Modified:
branches/branch_5_0/connector-j/src/testsuite/regression/ConnectionRegressionTest.java
Log:
Recognize that nnn.nnn.nnn.nnn is not a port #.
Modified: branches/branch_5_0/connector-j/src/testsuite/regression/ConnectionRegressionTest.java
===================================================================
--- branches/branch_5_0/connector-j/src/testsuite/regression/ConnectionRegressionTest.java 2006-03-09 21:20:19 UTC (rev 5037)
+++ branches/branch_5_0/connector-j/src/testsuite/regression/ConnectionRegressionTest.java 2006-03-09 21:20:37 UTC (rev 5038)
@@ -564,7 +564,8 @@
if (st.hasMoreTokens()) {
String possibleHostOrPort = st.nextToken();
- if (Character.isDigit(possibleHostOrPort.charAt(0))) {
+ if (possibleHostOrPort.indexOf(".") == -1 &&
+ Character.isDigit(possibleHostOrPort.charAt(0))) {
port = possibleHostOrPort;
host = "localhost";
} else {
| Thread |
|---|
| • Connector/J commit: r5038 - branches/branch_5_0/connector-j/src/testsuite/regression | mmatthews | 9 Mar |