Skip to content

Commit

Permalink
Fix for sql regression
Browse files Browse the repository at this point in the history
  • Loading branch information
huafengw committed Jul 20, 2017
1 parent 8cb0880 commit 0733749
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void aggregateTables(
jdbcTemplate.execute(create);
String insert =
String.format(
"INSERT INTO %s SELECT %s, SUM(%s) AS %s FROM(%s) GROUP BY %s;",
"INSERT INTO %s SELECT %s, SUM(%s) AS %s FROM(%s) tmp GROUP BY %s;",
destinationTable.getTableName(),
AccessCountDao.FILE_FIELD,
AccessCountDao.ACCESSCOUNT_FIELD,
Expand Down

0 comments on commit 0733749

Please sign in to comment.