Skip to content

Commit

Permalink
LPS-65755 Fix compilation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Angel Pastor Olivar authored and brianchandotcom committed May 13, 2016
1 parent 7474bcf commit d383a9a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ protected void copyCompanyTable(
sourceConnection, targetConnection, CompanyTable.TABLE_NAME,
CompanyTable.TABLE_COLUMNS, CompanyTable.TABLE_SQL_CREATE);

runSQL(
sourceConnection,
"delete from Company where companyId in (" + companyIdsString +
")");

List<Long> companyIds = getCompanyIds(shardName);

String companyIdsString = ListUtil.toString(
companyIds, StringPool.NULL, StringPool.COMMA);

runSQL(
sourceConnection,
"delete from Company where companyId in (" + companyIdsString +
")");

runSQL(
targetConnection,
"delete from Company where companyId not in (" + companyIdsString +
Expand Down

0 comments on commit d383a9a

Please sign in to comment.