cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject git commit: Fix validation of dates
Date Mon, 16 Jul 2012 18:32:32 GMT
Updated Branches:
  refs/heads/trunk b3ca94bdb -> 6399c94e4


Fix validation of dates

patch by slebresne; reviewed by jbellis for CASSANDRA-4441


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6399c94e
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6399c94e
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6399c94e

Branch: refs/heads/trunk
Commit: 6399c94e48203d233d997372dc9fccf713177d99
Parents: b3ca94b
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Mon Jul 16 19:09:03 2012 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Mon Jul 16 20:32:21 2012 +0200

----------------------------------------------------------------------
 lib/commons-lang-2.4.jar                           |  Bin 261809 -> 0 bytes
 lib/commons-lang-2.6.jar                           |  Bin 0 -> 284220 bytes
 .../org/apache/cassandra/db/marshal/DateType.java  |    2 +-
 3 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6399c94e/lib/commons-lang-2.4.jar
----------------------------------------------------------------------
diff --git a/lib/commons-lang-2.4.jar b/lib/commons-lang-2.4.jar
deleted file mode 100644
index 532939e..0000000
Binary files a/lib/commons-lang-2.4.jar and /dev/null differ

http://git-wip-us.apache.org/repos/asf/cassandra/blob/6399c94e/lib/commons-lang-2.6.jar
----------------------------------------------------------------------
diff --git a/lib/commons-lang-2.6.jar b/lib/commons-lang-2.6.jar
new file mode 100644
index 0000000..98467d3
Binary files /dev/null and b/lib/commons-lang-2.6.jar differ

http://git-wip-us.apache.org/repos/asf/cassandra/blob/6399c94e/src/java/org/apache/cassandra/db/marshal/DateType.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/marshal/DateType.java b/src/java/org/apache/cassandra/db/marshal/DateType.java
index 56d00a6..4270511 100644
--- a/src/java/org/apache/cassandra/db/marshal/DateType.java
+++ b/src/java/org/apache/cassandra/db/marshal/DateType.java
@@ -108,7 +108,7 @@ public class DateType extends AbstractType<Date>
       {
           try
           {
-              millis = DateUtils.parseDate(source, iso8601Patterns).getTime();
+              millis = DateUtils.parseDateStrictly(source, iso8601Patterns).getTime();
           }
           catch (ParseException e1)
           {


Mime
View raw message