Fixed Binary[16] Index

Stefan Von Torklus stefanvt at gmx.de
Mon Jul 28 09:40:29 CDT 2008


Thanks for the answer. I already noticed, that it works, if you have no index.
It's right, that it is really uncommon to use a ByteArray for searching.
But if you need an identifier, which is globally unique, it would be hard to do this 
with a long or longlong.

I'll give it a try to split this value into 2 ULLong Fields. If the speed doesn't fit the need of the application,
I would add a feature request or need to work with another solution. 
(unfortunately... 'cause I used valentina within my last 3 projects and it always works fine!)

Greetz,
Stefan

-------- Original-Nachricht --------
> Datum: Mon, 28 Jul 2008 09:49:50 +0300
> Von: Ruslan Zasukhin <sunshine at public.kherson.ua>
> An: "valentina at lists.macserve.net" <valentina at lists.macserve.net>
> Betreff: Re: Fixed Binary[16] Index

> On 7/25/08 9:24 PM, "Stefan Von Torklus" <stefanvt at gmx.de> wrote:
> 
> Hi Stefan,
> 
> > Hello,
> > 
> > I have a problem with the C++ ADK. I have a table with an FixedSized
> > Binary[16] index-field.
> 
> Binary fields NEVER have index actually.
> 
> > I can put and get the data directly.
> 
> > But I have problem to search for a specific Entry. Here is how my code
> looks
> > like:
> > 
> > uchar dta[17] = {"1234567890123456"};
> > 
> > I_Field_Ptr pfUid = pT1->get_Field("uid"); //get the field ->
> successfull
> > I_Value_Ptr ptr = (pfUid->get_Value()->Clone()); //successfull
> > fbl_dynamic_cast<I_ValueBinary>(ptr)->put_Data(dta,16);  //successfull
> > REC_ID id = pfUid->FindSingleValue((I_Value_Ptr)ptr);  //successfull
> 
>  
> > BUT the ID returns always a 1 (But the value is e.g. on RecID 1000).
> > (Also if there is no data within the table)
> > 
> > What I'm doing wrong?
> > Any suggestion are welcome!
> 
> Just I never have think that somebody may need do search on binary
> values...
> 
> You need for now to use other field types, and add feature request into
> Mantis. I still see this feature as very limited. May be really to only
> small binary values.
> 
> 
> > Greetz,
> > Stefan
> 
> 
> 
> -- 
> 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


More information about the Valentina mailing list