bugfix[issues#35]:Mysql新驱动
This commit is contained in:
@@ -42,7 +42,8 @@ public class LimitPlugin extends BasePlugin {
|
||||
@Override
|
||||
public boolean validate(List<String> warnings) {
|
||||
// 该插件只支持MYSQL
|
||||
if ("com.mysql.jdbc.Driver".equalsIgnoreCase(this.getContext().getJdbcConnectionConfiguration().getDriverClass()) == false) {
|
||||
if ("com.mysql.jdbc.Driver".equalsIgnoreCase(this.getContext().getJdbcConnectionConfiguration().getDriverClass()) == false
|
||||
&& "com.mysql.cj.jdbc.Driver".equalsIgnoreCase(this.getContext().getJdbcConnectionConfiguration().getDriverClass()) == false) {
|
||||
warnings.add("itfsw:插件" + this.getClass().getTypeName() + "只支持MySQL数据库!");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -65,7 +65,8 @@ public class UpsertPlugin extends BasePlugin {
|
||||
public boolean validate(List<String> warnings) {
|
||||
|
||||
// 插件使用前提是数据库为MySQL
|
||||
if ("com.mysql.jdbc.Driver".equalsIgnoreCase(this.getContext().getJdbcConnectionConfiguration().getDriverClass()) == false) {
|
||||
if ("com.mysql.jdbc.Driver".equalsIgnoreCase(this.getContext().getJdbcConnectionConfiguration().getDriverClass()) == false
|
||||
&& "com.mysql.cj.jdbc.Driver".equalsIgnoreCase(this.getContext().getJdbcConnectionConfiguration().getDriverClass()) == false) {
|
||||
warnings.add("itfsw:插件" + this.getClass().getTypeName() + "插件使用前提是数据库为MySQL!");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user