db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Number of formal and actual parameters in a JDOQL query
Date Tue, 06 Dec 2005 04:16:23 GMT
I agree. If there are more actual parameters, regardless of whether  
it's in an array or map, they should be ignored. I'll propose wording  
for the specification.

Craig

On Dec 5, 2005, at 5:16 PM, Bin Sun wrote:

> +1
>
> In some cases a developer tends to preset serveral
> parameters first in a Map, and choose to use some of
> them conditionally later in JDOQL.
>
> --- Michael Bouschen <mbo.tech@spree.de> wrote:
>
>> Hi,
>>
>> the current spec defines there must be at least as
>> many actual
>> parameters as there are formal parameters for a
>> JDOQL query (section
>> 14.3: "Each parameter named in the parameter
>> declaration must be bound
>> to a value when the query is executed."). But the
>> spec does not define
>> the behavior if there are more actual than formal
>> parameters. I propose
>> to ignore these parameters. That means, in case of a
>> map any name/value
>> pair is ignore if the name does not match any
>> implicit or explicit
>> declared parameter. In case of an array, parameters
>> at index n or higher
>> are ignore if n is the number of implicit or
>> explicit declared parameters.
>>
>> Regards Michael
>>
>> -- 
>> Michael Bouschen		Tech@Spree Engineering GmbH
>> mailto:mbo.tech@spree.de	http://www.tech.spree.de/
>> Tel.:++49/30/235 520-33		Buelowstr. 66			
>> Fax.:++49/30/2175 2012		D-10783 Berlin			
>>
>>
>
>
>
> 		
> __________________________________________
> Yahoo! DSL – Something to write home about.
> Just $16.99/mo. or less.
> dsl.yahoo.com
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message