!86 version for 1.6.6

* version for 1.6.6
This commit is contained in:
inrgihc
2022-03-16 14:56:26 +00:00
parent 3268385b2a
commit 0312a4b1a4
134 changed files with 3680 additions and 1956 deletions

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.gitee.dbswitch</groupId>
<artifactId>dbswitch-parent</artifactId>
<version>1.6.5</version>
<version>1.6.6</version>
</parent>
<artifactId>dbswitch-dbsynch</artifactId>

View File

@@ -143,8 +143,8 @@ public abstract class AbstractDatabaseSynchronize implements IDatabaseSynchroniz
}
});
this.fieldOrders = new ArrayList<String>(fieldNames);
this.pksOrders = new ArrayList<String>(pks);
this.fieldOrders = new ArrayList<>(fieldNames);
this.pksOrders = new ArrayList<>(pks);
this.insertStatementSql = this.getInsertPrepareStatementSql(schemaName, tableName, fieldNames);
this.updateStatementSql = this

View File

@@ -9,7 +9,7 @@
/////////////////////////////////////////////////////////////
package com.gitee.dbswitch.dbsynch;
import com.gitee.dbswitch.dbcommon.util.DatabaseAwareUtils;
import com.gitee.dbswitch.common.util.DatabaseAwareUtils;
import com.gitee.dbswitch.dbsynch.db2.DB2DatabaseSyncImpl;
import com.gitee.dbswitch.dbsynch.dm.DmDatabaseSyncImpl;
import com.gitee.dbswitch.dbsynch.kingbase.KingbaseDatabaseSyncImpl;
@@ -38,6 +38,7 @@ public final class DatabaseSynchronizeFactory {
put("MYSQL", MySqlDatabaseSyncImpl::new);
put("ORACLE", OracleDatabaseSyncImpl::new);
put("SQLSERVER", SqlServerDatabaseSyncImpl::new);
put("SQLSERVER2000", SqlServerDatabaseSyncImpl::new);
put("POSTGRESQL", PostgresqlDatabaseSyncImpl::new);
put("GREENPLUM", GreenplumDatabaseSyncImpl::new);
put("DB2", DB2DatabaseSyncImpl::new);
@@ -53,7 +54,7 @@ public final class DatabaseSynchronizeFactory {
* @return 同步器对象
*/
public static IDatabaseSynchronize createDatabaseWriter(DataSource dataSource) {
String type = DatabaseAwareUtils.getDatabaseNameByDataSource(dataSource).toUpperCase();
String type = DatabaseAwareUtils.getDatabaseTypeByDataSource(dataSource).name();
if (!DATABASE_SYNC_MAPPER.containsKey(type)) {
throw new RuntimeException(
String.format("[dbsynch] Unsupported database type (%s)", type));