mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-10-21 00:53:53 +00:00
BUG修复:更新时SQL语法错误
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-common</artifactId>
|
<artifactId>dbswitch-common</artifactId>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-core</artifactId>
|
<artifactId>dbswitch-core</artifactId>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-data</artifactId>
|
<artifactId>dbswitch-data</artifactId>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-dbchange</artifactId>
|
<artifactId>dbswitch-dbchange</artifactId>
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-dbcommon</artifactId>
|
<artifactId>dbswitch-dbcommon</artifactId>
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-dbsynch</artifactId>
|
<artifactId>dbswitch-dbsynch</artifactId>
|
||||||
|
@@ -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, " , "),
|
return String.format("UPDATE [%s].[%s] SET %s WHERE %s", schemaName, tableName, StringUtils.join(uf, " , "),
|
||||||
StringUtils.join(uw, " , "));
|
StringUtils.join(uw, " AND "));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -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, " , "),
|
return String.format("UPDATE `%s`.`%s` SET %s WHERE %s", schemaName, tableName, StringUtils.join(uf, " , "),
|
||||||
StringUtils.join(uw, " , "));
|
StringUtils.join(uw, " AND "));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -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, " , "),
|
return String.format("UPDATE \"%s\".\"%s\" SET %s WHERE %s", schemaName, tableName, StringUtils.join(uf, " , "),
|
||||||
StringUtils.join(uw, " , "));
|
StringUtils.join(uw, " AND "));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -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, " , "),
|
return String.format("UPDATE \"%s\".\"%s\" SET %s WHERE %s", schemaName, tableName, StringUtils.join(uf, " , "),
|
||||||
StringUtils.join(uw, " , "));
|
StringUtils.join(uw, " AND "));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-dbwriter</artifactId>
|
<artifactId>dbswitch-dbwriter</artifactId>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-pgwriter</artifactId>
|
<artifactId>dbswitch-pgwriter</artifactId>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-sql</artifactId>
|
<artifactId>dbswitch-sql</artifactId>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>dbswitch-webapi</artifactId>
|
<artifactId>dbswitch-webapi</artifactId>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>package-tool</artifactId>
|
<artifactId>package-tool</artifactId>
|
||||||
|
2
pom.xml
2
pom.xml
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<groupId>com.weishao</groupId>
|
<groupId>com.weishao</groupId>
|
||||||
<artifactId>dbswitch</artifactId>
|
<artifactId>dbswitch</artifactId>
|
||||||
<version>1.4.0</version>
|
<version>1.4.1</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>dbswitch</name>
|
<name>dbswitch</name>
|
||||||
<description>database switch project</description>
|
<description>database switch project</description>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set APP_VERSION=1.4.0
|
set APP_VERSION=1.4.1
|
||||||
|
|
||||||
echo "Clean Project ..."
|
echo "Clean Project ..."
|
||||||
call mvn clean -f pom.xml
|
call mvn clean -f pom.xml
|
||||||
|
Reference in New Issue
Block a user