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

DB.createCollection method doesn't create an empty collection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.10.1
    • API
    • None
    • Windows XP 32-Bit

    Description

      The below method,
      DBCollection com.mongodb.DB.createCollection(String arg0, DBObject arg1)

      doesn't create a new empty collection using java.

      However, from the mongo shell, this command creates an empty collection.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mukul.sharma Mukul Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: