Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Components
Assignee
Gavin HallidayGavin HallidayReporter
Gavin HallidayGavin HallidayPriority
MinorFix versions
Labels
Pull Request URL
Details
Details
Components
Assignee
Gavin Halliday
Gavin HallidayReporter
Gavin Halliday
Gavin HallidayPriority
Fix versions
Labels
Pull Request URL
Created November 5, 2014 at 9:14 AM
Updated January 28, 2015 at 5:00 PM
Resolved January 28, 2015 at 5:00 PM
Varstrings are terminated with a character with value \0, and cause issues if they are used as keyed fields in an index.
Two possible guesses at what is going on. Maybe the data after the trailing 0 is uninitialized, and is sorted by the strings, but not if you include the data following the trailing 0. Or it could be that when searching for elements in the key that uninitialized data after the 0 is causing grief.
Either way we should report an error if you try and use them in the keyed portion of an index – since they’re likely to cause problems and don't provide any benefit. (If you really need an exact string match including length, match a string<n> and store a separate length..)