Turning compression on

Ivan Smahin IvanSmahin at public.kherson.ua
Fri Feb 4 21:51:04 CST 2005


Hello jda,

Friday, February 4, 2005, 9:13:03 PM, you wrote:

>>
>>
>>j> In my project, in the baseobject declaration, I add this line:
>>
>>j>         abstract.isCompressed = true
>>
>>j> When I run it, the old db opens fine.
>>
>>
>>j> But if I do it this way
>>
>>j>        abstract = CreateTextField("abstract", 128, EVFlag.fCompressed
>>j> + EVFlag.fNullable + EVFlag.fIndexed + EVFlag.fIndexByWords)
>>
>>j> I get a nil object error when I run try to open the db.
>>
>>j> Moreover, if I make a new db and try to create a new record  -> crash.
>>
>>j> So, should we avoid the EVFlag.fCompressed flag and use
>>j> isCompressed=true after the field has been created? Or should I
>>j> report this (minor) issue on Mantis?
>>
>>
>>It's fixed already - just a couple days ago.
>>(id=370)
>>

j> Thanks for the info, Ivan. BTW, is one way better than the other (the
j> flag vs. the boolean after the field is created)?

j> Jon
j> _______________________________________________
j> Valentina-beta mailing list
j> Valentina-beta at lists.macserve.net
j> http://lists.macserve.net/mailman/listinfo/valentina-beta

I think here is no difference which way you choose.
But in case of the "flag" - you set all properties at once. So it seems
to be more preferable way.

BTW - our test for compress not-empty text-field is passed well.

-- 
Best regards,
 Ivan                            mailto:IvanSmahin at public.kherson.ua



More information about the Valentina-beta mailing list