Menu

#3 please do not abhor zero

closed
nobody
None
5
2015-12-31
2015-12-25
No

It's impossible to match id or rid to 0 or \x00 for some reason
v. 0.3.4-1 (debian-ubuntu)

Discussion

  • Timo Savinen

    Timo Savinen - 2015-12-29

    First field or offset is number 1.

     
    • Turbo Beholder

      Turbo Beholder - 2015-12-30

      How to choose the variant record where id [whatever] ==0 ?

      So far, it's impossible. And there's no "else" to match for everything else.
      Thus a structure with several variant records, one of which can be all ==0, cannot be correctly matched AT ALL.
      And since increment is always 1 byte, it cannot be correctly skipped either - ffe reading such a file loses the track of record offsets from the first zero record on.

       
  • Timo Savinen

    Timo Savinen - 2015-12-29
    • status: open --> closed
     
  • Timo Savinen

    Timo Savinen - 2015-12-31

    Do you mean that something like

    id 3 "0"

    does not work? Or could you give a real world example?

     

Log in to post a comment.

MongoDB Logo MongoDB