Skip to content

Commit

Permalink
Don't think we need to pass a java.sql.Timestamp to the SimpleJdbcTem…
Browse files Browse the repository at this point in the history
…plate
  • Loading branch information
chenson42 committed Sep 26, 2009
1 parent 1cd7a6e commit df70aea
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -22,7 +22,6 @@

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
Expand Down Expand Up @@ -143,7 +142,7 @@ private void purgeByMinMax(long[] minMax, String deleteSql, Date retentionTime,
Map<String, Object> params = new HashMap<String, Object>();
params.put("MIN", minId);
params.put("MAX", maxId);
params.put("TIME", new Timestamp(retentionTime.getTime()));
params.put("TIME", retentionTime);

totalCount += getSimpleTemplate().update(deleteSql, params);

Expand Down

0 comments on commit df70aea

Please sign in to comment.