Skip to content

Commit

Permalink
Be more certain with oceanbase jdbc url when getting the driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry-RG authored Mar 7, 2024
1 parent ed0907e commit 7c590b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public boolean handlesJDBCUrl(String url) {

@Override
public String getDriverClass(String url, ClassLoader classLoader) {
return !url.startsWith("jdbc:mysql:")?
return url.startsWith("jdbc:oceanbase:")?
OB_JDBC_DRIVER :
super.getDriverClass(url, classLoader);
}
Expand Down

0 comments on commit 7c590b9

Please sign in to comment.