You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by ni...@bnpparibas.com on 2006/01/10 10:58:55 UTC

Ibatis v1.3 : QueryForMap Bug/Regression ?

Hi

I ve got a problem with calling the version of the method QueryForMap without the valueProperty Parameter (public IDictionary QueryForMap(string
statementName, object parameterObject, string keyProperty))
this one is an overload of this following method: public IDictionary QueryForMap(string statementName, object parameterObject, string keyProperty,
string valueProperty)which use null as valueProperty.

So, A NullReferenceException is raised. I could see in the source code the problem come from the building of the CacheKey object : Indeed, Update
method of the CacheKey object is called with null object

So Is it really a bug/regression (it worked properly in the previous version of ibatis) or is this method obsolete ? Maybe this problem occur with all
 the methods with a null valueProperty ???

Regards


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


Re: Ibatis v1.3 : QueryForMap Bug/Regression ?

Posted by Gilles Bayon <ib...@gmail.com>.
Fixed in SVN

On 1/10/06, nicolas.theron@bnpparibas.com <ni...@bnpparibas.com>
wrote:
>
>
> Hi
>
> I ve got a problem with calling the version of the method QueryForMap
> without the valueProperty Parameter (public IDictionary QueryForMap(string
> statementName, object parameterObject, string keyProperty))
> this one is an overload of this following method: public IDictionary
> QueryForMap(string statementName, object parameterObject, string
> keyProperty,
> string valueProperty)which use null as valueProperty.
>
> So, A NullReferenceException is raised. I could see in the source code the
> problem come from the building of the CacheKey object : Indeed, Update
> method of the CacheKey object is called with null object
>
> So Is it really a bug/regression (it worked properly in the previous
> version of ibatis) or is this method obsolete ? Maybe this problem occur
> with all
> the methods with a null valueProperty ???
>
> Regards
>
>
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential.
> If you receive this message in error, please delete it and
> immediately notify the sender. Any use not in accord with
> its purpose, any dissemination or disclosure, either whole
> or partial, is prohibited except formal approval. The internet
> can not guarantee the integrity of this message.
> BNP PARIBAS (and its subsidiaries) shall (will) not
> therefore be liable for the message if modified.
>
>                ---------------------------------------------
>
> Ce message et toutes les pieces jointes (ci-apres le
> "message") sont etablis a l'intention exclusive de ses
> destinataires et sont confidentiels. Si vous recevez ce
> message par erreur, merci de le detruire et d'en avertir
> immediatement l'expediteur. Toute utilisation de ce
> message non conforme a sa destination, toute diffusion
> ou toute publication, totale ou partielle, est interdite, sauf
> autorisation expresse. L'internet ne permettant pas
> d'assurer l'integrite de ce message, BNP PARIBAS (et ses
> filiales) decline(nt) toute responsabilite au titre de ce
> message, dans l'hypothese ou il aurait ete modifie.
>
>