diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab8b557 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/bin +/build +/dist diff --git a/bin/fr/devinsy/sikevadb/SQLSikevaDB.class b/bin/fr/devinsy/sikevadb/SQLSikevaDB.class index 88dd152..923950b 100644 Binary files a/bin/fr/devinsy/sikevadb/SQLSikevaDB.class and b/bin/fr/devinsy/sikevadb/SQLSikevaDB.class differ diff --git a/src/fr/devinsy/sikevadb/SQLSikevaDB.java b/src/fr/devinsy/sikevadb/SQLSikevaDB.java index 56d53fb..c6ae883 100644 --- a/src/fr/devinsy/sikevadb/SQLSikevaDB.java +++ b/src/fr/devinsy/sikevadb/SQLSikevaDB.java @@ -108,7 +108,7 @@ public class SQLSikevaDB implements SikevaDB { connection.setAutoCommit(true); statement = connection.prepareStatement("UPDATE elements SET ARCHIVE_DATE=? WHERE TOPKEY=? AND SUBKEY IS NULL"); - statement.setDate(1, dateToDate(element.getArchiveDate())); + statement.setTimestamp(1, dateToTimestamp(element.getArchiveDate())); statement.setString(2, element.getKey()); statement.executeUpdate(); @@ -147,7 +147,7 @@ public class SQLSikevaDB implements SikevaDB { connection.setAutoCommit(true); statement = connection.prepareStatement("UPDATE elements SET ARCHIVE_DATE=? WHERE TOPKEY=? AND SUBKEY=?"); - statement.setDate(1, dateToDate(element.getArchiveDate())); + statement.setTimestamp(1, dateToTimestamp(element.getArchiveDate())); statement.setString(2, element.getKey()); statement.setString(3, element.getSubkey()); @@ -200,7 +200,7 @@ public class SQLSikevaDB implements SikevaDB { connection.setAutoCommit(true); statement = connection.prepareStatement("DELETE FROM elements WHERE ARCHIVE_DATE