You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Daniel Perry <d....@netcase.co.uk> on 2004/12/02 20:40:59 UTC
Bug in StringVector2VarcharFieldConversion.java (was Bug in IntList2VarcharFieldConversion)
I've just been struggling with some code (which uses
StringVector2VarcharFieldConversion conversion), and realised that i am
facing the same bug i found in InList2VarcharFieldConversion :)
So, could someone with cvs commit rights change line 61 from:
return NULLVALUE;
to:
return EMPTYCOLLEC;
This is causing it to change an empty vector into null on reloading the
class.
Thanks,
Daniel.
> -----Original Message-----
> From: Daniel Perry [mailto:d.perry@netcase.co.uk]
> Sent: 26 October 2004 15:55
> To: OJB Users List
> Subject: Bug in IntList2VarcharFieldConversion
>
>
> I've just come accross a bug in class:
> org.apache.ojb.broker.accesslayer.conversions.IntList2VarcharField
> Conversion
> .
>
> On line 56 it currently has:
> return NULLVALUE;
> It should be:
> return EMPTYCOLLEC;
>
> The bug causes it to store a null value when it should store an
> empty list.
> This applies to current release + CVS.
>
> Daniel.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Bug in StringVector2VarcharFieldConversion.java (was Bug in
IntList2VarcharFieldConversion)
Posted by Armin Waibel <ar...@apache.org>.
Thanks Daniel! Fix it in CVS.
regards,
Armin
Daniel Perry wrote:
> I've just been struggling with some code (which uses
> StringVector2VarcharFieldConversion conversion), and realised that i am
> facing the same bug i found in InList2VarcharFieldConversion :)
>
> So, could someone with cvs commit rights change line 61 from:
> return NULLVALUE;
> to:
> return EMPTYCOLLEC;
>
> This is causing it to change an empty vector into null on reloading the
> class.
>
> Thanks,
>
> Daniel.
>
>
>>-----Original Message-----
>>From: Daniel Perry [mailto:d.perry@netcase.co.uk]
>>Sent: 26 October 2004 15:55
>>To: OJB Users List
>>Subject: Bug in IntList2VarcharFieldConversion
>>
>>
>>I've just come accross a bug in class:
>>org.apache.ojb.broker.accesslayer.conversions.IntList2VarcharField
>>Conversion
>>.
>>
>>On line 56 it currently has:
>> return NULLVALUE;
>>It should be:
>> return EMPTYCOLLEC;
>>
>>The bug causes it to store a null value when it should store an
>>empty list.
>>This applies to current release + CVS.
>>
>>Daniel.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org