You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2014/02/18 17:46:19 UTC

[jira] [Updated] (CASSANDRA-6718) DateType should accept pre-epoch (negative) timestamp in fromString

     [ 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)