mirror of https://github.com/alibaba/DataX.git
fix:oceanbase datasource support special characters
This commit is contained in:
parent
d40ef264dc
commit
37915a9ef3
|
@ -32,7 +32,7 @@ public class ServerConnectInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void parseJdbcUrl(final String jdbcUrl) {
|
private void parseJdbcUrl(final String jdbcUrl) {
|
||||||
Pattern pattern = Pattern.compile("//([\\w\\.\\-]+:\\d+)/([\\w]+)\\?");
|
Pattern pattern = Pattern.compile("//([\\w\\.\\-]+:\\d+)/([^\\\\?]*)");
|
||||||
Matcher matcher = pattern.matcher(jdbcUrl);
|
Matcher matcher = pattern.matcher(jdbcUrl);
|
||||||
if (matcher.find()) {
|
if (matcher.find()) {
|
||||||
String ipPort = matcher.group(1);
|
String ipPort = matcher.group(1);
|
||||||
|
|
Loading…
Reference in New Issue