db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bin Sun <sun2...@yahoo.com>
Subject Re: Number of formal and actual parameters in a JDOQL query
Date Tue, 06 Dec 2005 01:16:26 GMT
+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 


Mime
View raw message