[JIRA] Created: (DSY-661) Query language: handle 'null' dates more elegantly

View: New views
1 Messages — Rating Filter:   Alert me  

[JIRA] Created: (DSY-661) Query language: handle 'null' dates more elegantly

by JIRA issues@cocoondev.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Query language: handle 'null' dates more elegantly
--------------------------------------------------

         Key: DSY-661
         URL: http://issues.cocoondev.org//browse/DSY-661
     Project: Daisy
        Type: Improvement
    Versions: 2.2    
 Reporter: Karel Vervaeke
    Priority: Minor


Currently the repository throws nullpointer exceptions on this query if the date $FooDate is null:

select Year($FooDate) ...

Solution one: Year(null) returns null (same for other date functions)
Solution two: Year(null) returns 0 (same for other date functions)

pro solution one: makes sense
pro solution two: makes sense (but less), allows for nifty date calculations: Year($FooDate) + DayOfYear($fooDate)

Also, a Milliseconds(date) function would be nice.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org//secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy
LightInTheBox - Buy quality products at wholesale price