List:Falcon Storage Engine« Previous MessageNext Message »
From:Ann W. Harrison Date:October 22 2008 7:55pm
Subject:Re: Non-indexed selections
View as plain text  
> Thanks for the explanation, I was wondering because I am able to 
> reproduce bug#34479, that we discussed on the Friday conf. call even 
> without adding indexes to the field.

I've got a guess on that.  UCS2 is not one of the character sets
Jim uses a lot - he's distinctly a UTF-8 kind of guy, and I think
that encode data may be handling trailing 0x20 bytes incorrectly
for UCS2.

What I would do is follow a UCS2 string that ends in a 0x20 through
encodeRecord and encodeOpaque and see if it loses its trailing byte.
If so, when decoded, you're likely to get whatever happens to be in
the buffer as the second half of the last character.

Which reminds me that in general, using UCS2, the code that
truncates blanks needs to look for pairs of 0x20 0x00, not
0x20 bytes.  And the other fixed size, multi-byte character
sets need special handling as well.

Best regards,

Non-indexed selectionsAnn W. Harrison22 Oct
  • Re: Non-indexed selectionsLars-Erik Bjørk22 Oct
    • Re: Non-indexed selectionsAnn W. Harrison22 Oct
      • Re: Non-indexed selectionsLars-Erik Bjørk23 Oct