cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-6718) DateType should accept pre-epoch (negative) timestamp in fromString
Date Tue, 18 Feb 2014 16:46:19 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-6718:
----------------------------------------

    Attachment: 6718.txt

Very trivial patch attached. I just realized that we actually have fixed that with TimestampType
in 2.0 so I guess that's a pretty minor issue, but well, this doesn't hurt either.

> DateType should accept pre-epoch (negative) timestamp in fromString
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-6718
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6718
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 1.2.16
>
>         Attachments: 6718.txt
>
>
> DateType.fromString() method doesn't accept negative timestamp for pre-epoch timestamps.
It really just seem to be an oversight, the regexp that recognize digits no recognizing the
minus sign, because DateType has no problem with negative timestamp otherwise, and in fact
accept then if you provide them as date strings.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message