[daisy] [JIRA] Created: (DSY-661) Query language: handle 'null'
dates more elegantly
Karel Vervaeke (JIRA)
issues at cocoondev.org
Thu Jun 26 11:18:27 CEST 2008
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
More information about the daisy
mailing list