From 1a25aab32882f5cf42d40cb770e1dc8faf7e88c0 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Wed, 11 Sep 2013 01:06:59 +0200 Subject: [PATCH] Fix date issue. --- src/fr/devinsy/sikevadb/SQLSikevaDB.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/sikevadb/SQLSikevaDB.java b/src/fr/devinsy/sikevadb/SQLSikevaDB.java index 29fe99c..f61e883 100644 --- a/src/fr/devinsy/sikevadb/SQLSikevaDB.java +++ b/src/fr/devinsy/sikevadb/SQLSikevaDB.java @@ -186,6 +186,7 @@ public class SQLSikevaDB implements SikevaDB { */ @Override public void clearArchive(final Date beforeDate) throws SQLException { + // if (beforeDate == null) { throw new NullPointerException("beforeDate is null."); } else { @@ -197,9 +198,9 @@ public class SQLSikevaDB implements SikevaDB { // connection = getConnection(); connection.setAutoCommit(true); - statement = connection.prepareStatement("DELETE FROM elements WHERE ARCHIVE_DATE