cassandra-commits mailing list archives

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


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:
>             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

View raw message