BUG修复:更新时SQL语法错误

This commit is contained in:
inrgihc
2020-09-18 10:42:35 +08:00
parent b4565b7d5d
commit f611e716d1
17 changed files with 17 additions and 17 deletions

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-common</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-core</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-data</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-dbchange</artifactId>

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-dbcommon</artifactId>

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-dbsynch</artifactId>

View File

@@ -60,7 +60,7 @@ public class SqlServerDatabaseSynchImpl extends AbstractDatabaseSynchronize impl
}
return String.format("UPDATE [%s].[%s] SET %s WHERE %s", schemaName, tableName, StringUtils.join(uf, " , "),
StringUtils.join(uw, " , "));
StringUtils.join(uw, " AND "));
}
@Override

View File

@@ -60,7 +60,7 @@ public class MySqlDatabaseSynchImpl extends AbstractDatabaseSynchronize implemen
}
return String.format("UPDATE `%s`.`%s` SET %s WHERE %s", schemaName, tableName, StringUtils.join(uf, " , "),
StringUtils.join(uw, " , "));
StringUtils.join(uw, " AND "));
}
@Override

View File

@@ -60,7 +60,7 @@ public class OracleDatabaseSynchImpl extends AbstractDatabaseSynchronize impleme
}
return String.format("UPDATE \"%s\".\"%s\" SET %s WHERE %s", schemaName, tableName, StringUtils.join(uf, " , "),
StringUtils.join(uw, " , "));
StringUtils.join(uw, " AND "));
}
@Override

View File

@@ -60,7 +60,7 @@ public class PostgresqlDatabaseSynchImpl extends AbstractDatabaseSynchronize imp
}
return String.format("UPDATE \"%s\".\"%s\" SET %s WHERE %s", schemaName, tableName, StringUtils.join(uf, " , "),
StringUtils.join(uw, " , "));
StringUtils.join(uw, " AND "));
}
@Override

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-dbwriter</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-pgwriter</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-sql</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>dbswitch-webapi</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>package-tool</artifactId>

View File

@@ -21,7 +21,7 @@
<groupId>com.weishao</groupId>
<artifactId>dbswitch</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
<packaging>pom</packaging>
<name>dbswitch</name>
<description>database switch project</description>

View File

@@ -1,6 +1,6 @@
@echo off
set APP_VERSION=1.4.0
set APP_VERSION=1.4.1
echo "Clean Project ..."
call mvn clean -f pom.xml