Open
Description
Bug Report
When parsing a jdbcURL containing an IPv6 address using StandardJdbcParser.parse, an incorrect port number was obtained.
e.g.
String url = "jdbc:mysql://[fe80::d114:22b3:a0d9:2b3]:3306/db_test";
JdbcUrl jdbcUrl = new StandardJdbcUrlParser().parse(url);
System.out.println(jdbcUrl.getPort());
Which version of ShardingSphere did you use?
5.5.0 ~ 5.5.2
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
The above example code outputs 3306
Actual behavior
The example code above throws exception
java.lang.NumberFormatException: For input string: ""