Skip to content

Commit

Permalink
Update TargetDao.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Oct 21, 2024
1 parent 4ddf798 commit 9ec5a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dao/TargetDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public boolean AddSubDomainCount() {
String createNewTableSql = genCreateTableSql("TargetTable_new");

String copyDataSql = "INSERT INTO TargetTable_new (ID, target, type, keyword, ZoneTransfer, comment, useTLD, trustLevel) " +
"SELECT ID, target, type, keyword, ZoneTransfer, comment, useTLD, trustLevel" +
"SELECT ID, target, type, keyword, ZoneTransfer, comment, useTLD, trustLevel " +
"FROM TargetTable";

String dropOldTableSql = "DROP TABLE TargetTable";
Expand Down Expand Up @@ -171,7 +171,7 @@ public boolean tableExists(String tableName){
*/
public boolean addOrUpdateTarget(TargetEntry entry) {
String sql = "insert or replace into TargetTable (target, type, keyword, ZoneTransfer, comment, useTLD, trustLevel,subDomainCount)"
+ " values(?, ?, ?, ?, ?, ?, ?)";
+ " values(?, ?, ?, ?, ?, ?, ?,?)";

int result = jdbcTemplate.update(sql, entry.getTarget(), entry.getType(), entry.getKeyword(), entry.isZoneTransfer(),
SetAndStr.toStr(entry.getComments()), entry.isUseTLD(),
Expand Down

0 comments on commit 9ec5a40

Please sign in to comment.