Commit 7230281e by jinfeng.wang

fix

parent 94a95f29
......@@ -30,7 +30,7 @@ public class JoypacMain {
try {
Class.forName(DRIVER);
Connection con = DriverManager.getConnection(CONNECTION_URL, USER, PASSWORD);
String insertSql = "INSERT INTO package_list(package_name) VALUES @VALUES ON DUPLICATE KEY UPDATE 1 = 1";
String insertSql = "REPLACE INTO package_list(package_name) VALUES @VALUES";
StringBuilder stringBuilder = new StringBuilder();
for (String packageName : set) {
stringBuilder.append("('").append(packageName).append("'),");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment