Commit fa417647 by jinfeng.wang

fix

parent b78b11cd
...@@ -181,7 +181,9 @@ public class StorageTag { ...@@ -181,7 +181,9 @@ public class StorageTag {
String insert_sql = "REPLACE INTO storage(package_name, app_name, platform, tag, update_time) " + String insert_sql = "REPLACE INTO storage(package_name, app_name, platform, tag, update_time) " +
"VALUES"; "VALUES";
// System.out.println(insert_sql + insertSql.substring(0, insertSql.length() - 1)); // System.out.println(insert_sql + insertSql.substring(0, insertSql.length() - 1));
stmt.executeQuery(insert_sql + insertSql.substring(0, insertSql.length() - 1)); if (insertSql.length() > 0) {
stmt.executeQuery(insert_sql + insertSql.substring(0, insertSql.length() - 1));
}
con.close(); con.close();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
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