代码优化调整

This commit is contained in:
inrgihc
2024-07-25 22:07:05 +08:00
parent 815528b817
commit 9cba0c17a6
52 changed files with 146 additions and 505 deletions

View File

@@ -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

View File

@@ -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;
}
}