aloyszhang commented on code in PR #11378:
URL: https://github.com/apache/inlong/pull/11378#discussion_r1808407088
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/oceanbase/OceanBaseJdbcUtils.java:
##########
@@ -71,6 +71,9 @@ public static Connection getConnection(String url, String
user, String password)
*/
private static Connection establishDatabaseConnection(String url, String
user, String password) throws Exception {
Connection conn;
+ if (StringUtils.isBlank(url) ||
!url.startsWith(OCEANBASE_JDBC_PREFIX)) {
+ throw new Exception("OceanusBase URL was invalid, it should start
with jdbc:oceanbase");
Review Comment:
```suggestion
throw new Exception("OceanusBase URL is invalid, it should start
with jdbc:oceanbase");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]