-
Notifications
You must be signed in to change notification settings - Fork 1k
Add JDBC URL parsing support for OceanBase, PolarDB and Lindorm #14790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
8282947
d0acc07
4251ef4
8d79717
a4a325f
28c2324
e5d0f3c
ae6a467
660f26b
548e0df
73286f8
87105b6
92a0e4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -911,6 +911,72 @@ DbInfo.Builder doParse(String jdbcUrl, DbInfo.Builder builder) { | |||||
} | ||||||
return GENERIC_URL_LIKE.doParse(clickhouseUrl, builder); | ||||||
} | ||||||
}, | ||||||
/** jdbc:oceanbase://host:port/dbname jdbc:oceanbase:oracle://host:port/dbname */ | ||||||
OCEANBASE("oceanbase") { | ||||||
@Override | ||||||
DbInfo.Builder doParse(String jdbcUrl, DbInfo.Builder builder) { | ||||||
int protoLoc = jdbcUrl.indexOf("://"); | ||||||
int typeEndLoc = jdbcUrl.indexOf(':'); | ||||||
if (protoLoc > typeEndLoc) { | ||||||
String subtype = jdbcUrl.substring(typeEndLoc + 1, protoLoc); | ||||||
builder.subtype(subtype); | ||||||
if (subtype.equals(DbSystemValues.ORACLE)) { | ||||||
builder.system(DbSystemValues.ORACLE); | ||||||
laurit marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
} | ||||||
Comment on lines
+931
to
+933
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. initially I though that it is weird to have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I've referred to |
||||||
return MODIFIED_URL_LIKE.doParse(jdbcUrl, builder); | ||||||
} else { | ||||||
return GENERIC_URL_LIKE.doParse(jdbcUrl, builder); | ||||||
} | ||||||
} | ||||||
}, | ||||||
/** | ||||||
* <a | ||||||
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints?spm=a2c63.p38356.help-menu-172543.d_2_0_1.7a1e41feMntzyJ">Driver | ||||||
|
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints?spm=a2c63.p38356.help-menu-172543.d_2_0_1.7a1e41feMntzyJ">Driver | |
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints">Driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
did you forget to actually delete the url parameters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps change the comment to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optimized