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

Expose int32 and int64 values

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.6.0
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None
    • Minor Change

      Currently bson-ruby Int32 and Int64 instances provide no way of getting the integer value that they are storing. This makes it impossible to, in particular, compare whether an cursor id stored in an Int64 instance is equal to an Integer.

      The proposal in this ticket is to add a `value` accessor for retrieving the stored integer value.

            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: