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.htmlmail to:
daisy@...
list information:
http://lists.cocoondev.org/mailman/listinfo/daisy