Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2078

Implement Symbol and Int64 round-tripping

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.8.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Fully Compatible

      Currently when symbols and integers are converted between bson, ruby types and extended json the type information is not preserved, and hence these types cannot always be round-tripped. This ticket covers adding support for round-tripping symbols and integers:

      Add BSON::Symbol::Raw type that encodes to BSON symbol, permitting Symbol round-tripping
      Add mode: :bson to .from_bson methods everywhere which will yield BSON::Int64 instances, permitting int64 round-tripping
      Add bson corpus spec tests dealing with int64 and symbol

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: