Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1609

DBCollection.createIndex is too strict about options value types

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0
    • None
    • API
    • None

    Description

      For values that should be boolean, convert all numbers to boolean
      For values that should be integer, convert all numbers to integer
      For values that should be double, convert all numbers to double.

      Otherwise we risk breaking existing clients that are relying on the server's laxity.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: