Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
特别说明: oceanbase数据库分为MySQL模式和Oracle模式,两种模式语法分别兼容原生Oracle/MySQL数据库,分别使用MySQL/Oracle的Dialect即可。MySQL模式数据库连接url为jdbc:oceanbsae://ip:port/databaseName,Oracle模式则有jdbc:oceanbsae://ip:port/databaseName 和 jdbc:oceanbsae:oracle//ip:port/databaseName两种,如果使用原有url.contains(":" + dialect.toLowerCase() + ":")进行判断则可能会引起混淆,我们会建议客户在使用pagehelper+oceanbase时,Oracle模式下url使用jdbc:oceanbase:oracle格式,这样可以在原有的url.contains(":" + dialect.toLowerCase() + ":")判断中命中Oracle并返回预期结果,因此fromUrlJdbc方法里只增加了contains("oceanbase") return "mysql"