From: Dmitriy S. <sha...@gm...> - 2010-07-08 12:46:06
|
This section wasn't change from 1.0. On Thu, 2010-07-08 at 11:34 +0100, Adam Retter wrote: > Er... Is this an XQuery 1.1 functionality? It seems strange to me to > deviate from 1.0 for just one function? Or is there a project to move > us to 1.1 that I have missed? > > On 8 July 2010 10:09, <sha...@us...> wrote: > > Revision: 11923 > > http://exist.svn.sourceforge.net/exist/?rev=11923&view=rev > > Author: shabanovd > > Date: 2010-07-08 09:09:32 +0000 (Thu, 08 Jul 2010) > > > > Log Message: > > ----------- > > [bugfix] for xs:time only xs:dayTimeDuration can be apply as summand (XQuery 1.1: An XML Query Language - B.2 Operator Mapping) > > > > Modified Paths: > > -------------- > > trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateRangeFunctions.java > > trunk/eXist/src/org/exist/xquery/value/DurationValue.java > > > > Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateRangeFunctions.java > > =================================================================== > > --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateRangeFunctions.java 2010-07-08 08:57:28 UTC (rev 11922) > > +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateRangeFunctions.java 2010-07-08 09:09:32 UTC (rev 11923) > > @@ -75,7 +75,7 @@ > > "Generates a range of xs:time values, incremented cumulatively by a fixed duration from a start xs:time", > > new SequenceType[] { > > new FunctionParameterSequenceType("start-time", Type.TIME, Cardinality.EXACTLY_ONE, "The time to start at."), > > - new FunctionParameterSequenceType("increment", Type.DURATION, Cardinality.EXACTLY_ONE, "The duration increment."), > > + new FunctionParameterSequenceType("increment", Type.DAY_TIME_DURATION, Cardinality.EXACTLY_ONE, "The duration increment."), > > new FunctionParameterSequenceType("iterations", Type.INTEGER, Cardinality.EXACTLY_ONE, "The number of increments to generate.") > > }, > > new FunctionReturnSequenceType(Type.TIME, Cardinality.ZERO_OR_MORE, "the range(s)") > > > > Modified: trunk/eXist/src/org/exist/xquery/value/DurationValue.java > > =================================================================== > > --- trunk/eXist/src/org/exist/xquery/value/DurationValue.java 2010-07-08 08:57:28 UTC (rev 11922) > > +++ trunk/eXist/src/org/exist/xquery/value/DurationValue.java 2010-07-08 09:09:32 UTC (rev 11923) > > @@ -53,7 +53,7 @@ > > SIXTY = BigInteger.valueOf(60); > > protected static final BigDecimal > > SIXTY_DECIMAL = BigDecimal.valueOf(60), > > - ZERO_DECIMAL = BigDecimal.valueOf(0); // TODO: replace with BigDecimal.ZERO in JDK 1.5 > > + ZERO_DECIMAL = BigDecimal.ZERO; > > > > protected static final Duration CANONICAL_ZERO_DURATION = > > TimeUtils.getInstance().newDuration(true, null, null, null, null, null, ZERO_DECIMAL); > > > > > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Sprint > > What will you do first with EVO, the first 4G phone? > > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > _______________________________________________ > > Exist-commits mailing list > > Exi...@li... > > https://lists.sourceforge.net/lists/listinfo/exist-commits > > > > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... > irc://irc.freenode.net/existdb > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development -- Cheers, Dmitriy Shabanov |