[VCOM] Search method doesn't return an object of Nothing when it should

Bart Pietercil bart.pietercil at gmail.com
Thu Mar 8 09:44:00 CST 2007


I wonder if this problem is related to

http://valentina-db.com/bt/view.php?id=2237

Summary: when a subselect using NOT IN returns an empty result, the  
select returns nil

hth

Bart Pietercil



On 8-mrt-07, at 16:15, Joakim Schramm wrote:

>
>
>> -----Original Message-----
>> From: valentina-bounces at lists.macserve.net
>> [mailto:valentina-bounces at lists.macserve.net] On Behalf Of
>> Ruslan Zasukhin
>> Sent: 08 March 2007 16:05
>> To: valentina at lists.macserve.net; Kirill Pekarov
>> Subject: Re: [VCOM] Search method doesn't return an object of
>> Nothing when it should
>>
>> On 8/3/07 12:43 PM, "Joakim Schramm" <joakim at astrocalc.com> wrote:
>>
>> Hi Joakim,
>>
>>> This is 2.5.7 VCOM, and it has been put into Mantis as #2238
>>>
>>> With some of the fld.Find methods, when a search fails, it doesn't
>>> return an empty (Nothing) object, although the set contains no
>>> records. This same error has been before and has now
>> comeback (it was in 2.5.6 also).
>>
>> Unlikely it have comeback.
>> Most probably you have discover the same behavior in OTHER methods.
>>
> Yes I think I reported this fror FindValue and it was fixed, but  
> others not.
> I probably didn't check further at the time. I noticed this as I  
> removed the
> check on VSET.Count, which I had put in before as a workaround. I  
> shouldn't
> have to though, first check If Not obj IS Nothing Then, and after If
> obj.Count > 0 Then.
>
> I put back this workaround again for now, so I am not in panic but  
> as there
> probably will be only 1 more update to 2.x it's nice if this is fixed.
>
> Joakim
>
>> Kirill,
>>
>> Check this bug report.
>> Also check ALL methods of such kind (which return some set)
>> Make sure that VCOM return Nothing in case SET is NULL or empty.
>>
>>
>> --
>> Best regards,
>>
>> Ruslan Zasukhin
>> VP Engineering and New Technology
>> Paradigma Software, Inc
>>
>> Valentina - Joining Worlds of Information http:// 
>> www.paradigmasoft.com
>>
>> [I feel the need: the need for speed]
>>
>>
>> _______________________________________________
>> Valentina mailing list
>> Valentina at lists.macserve.net
>> http://lists.macserve.net/mailman/listinfo/valentina
>>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list