mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-04 11:25:44 +00:00
代码优化调整
This commit is contained in:
@@ -12,6 +12,7 @@ package com.gitee.dbswitch.product.mariadb;
|
||||
import com.gitee.dbswitch.annotation.Product;
|
||||
import com.gitee.dbswitch.common.type.ProductTypeEnum;
|
||||
import com.gitee.dbswitch.features.ProductFeatures;
|
||||
import com.gitee.dbswitch.product.mysql.MysqlFeatures;
|
||||
import com.gitee.dbswitch.product.mysql.MysqlMetadataQueryProvider;
|
||||
import com.gitee.dbswitch.provider.AbstractFactoryProvider;
|
||||
import com.gitee.dbswitch.provider.meta.MetadataProvider;
|
||||
@@ -29,7 +30,7 @@ public class MariadbFactoryProvider extends AbstractFactoryProvider {
|
||||
}
|
||||
|
||||
public ProductFeatures getProductFeatures() {
|
||||
return new MariadbFeatures();
|
||||
return new MysqlFeatures();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -1,20 +0,0 @@
|
||||
// Copyright tang. All rights reserved.
|
||||
// https://gitee.com/inrgihc/dbswitch
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license
|
||||
//
|
||||
// Author: tang (inrgihc@126.com)
|
||||
// Date : 2020/1/2
|
||||
// Location: beijing , china
|
||||
/////////////////////////////////////////////////////////////
|
||||
package com.gitee.dbswitch.product.mariadb;
|
||||
|
||||
import com.gitee.dbswitch.features.ProductFeatures;
|
||||
|
||||
public class MariadbFeatures implements ProductFeatures {
|
||||
|
||||
public int convertFetchSize(int fetchSize) {
|
||||
return Integer.MIN_VALUE;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user