- Summary:
Fixed two Bugzilla issues related to
using Date/Time values in BIRT Script
- Bugzilla Bug(s)
Resolved:
122860 nor P3
PC gxue@xxxxxxxxxxx NEW getFullYear() funtion can not get correct value.
123153 nor P3
PC gxue@xxxxxxxxxxx NEW Cannot set Date/Time column value in Scripted Data Set
us...
- Description:
When BIRT script or _expression_
access a date/time value from “row” or “outputParams”
data objects, it may get an object of wrong type. Instead of getting a native
_javascript_ Date object, it may receive a wrapper for java.util.Date. The script
will then be unable to use any _javascript_ Date function on the returned object.
This has been fixed in Data Engine.
In a related issue, if a scripted
data set’s fetch script sets a Date/time column to a _javascript_ Date
value, such a value is not properly accepted by the Data Engine; it is
converted to null instead. This has also been fixed.
- Tests
Description:
Data Engine JUnit Test
- Files Edited:
"/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSRowObject.java"
"/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/script/JSOutputParams.java"
"/org.eclipse.birt.data/test/org/eclipse/birt/data/engine/api/ScriptedDSTest.java"
"/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedScriptDSQuery.java"
"/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/DataSetRuntime.java"
"/org.eclipse.birt.core/src/org/eclipse/birt/core/script/_javascript_EvalUtil.java"
- Files Added:
- Notes to Build
Team:
- Notes to
Developers:
- Notes to QA:
- Notes to
Documentation: