Skip to content
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

oceanbase_support #724

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Itachi482244
Copy link

特别说明: 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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant