Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-587

CursorId should serialize to BSON as 64-bit integer

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None

      Using a CursorId with the killCursors command requires casting the string representation back to an integer, which will not work on 32-bit platforms. We should allow users to use CursorId objects as-is when serializing BSON.

      Note: mongod actually requires that we serialize the cursor ID as a 64-bit integer in KillCursorsRequest::parseFromBSON().

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: