Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-557

failed client creation doesn't result in Null returned

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.0.2
    • Component/s: None
    • Environment:
      Windows 7, visual studio 2010 express,

      Utilising the mongoc driver, ive discovered that when you create a connection, using
      client = mongoc_client_new(connection_string);

      The returned value when the mongodb isnt running is not a null value. This means any tests/checks carried out do not catch that the server hasnt been connected to, causing issues further down the line.

      Looking in the source I can't see anything that would set a value Null, either in v1.0.2, not v1.1.0 that was recently released.

            Assignee:
            Unassigned Unassigned
            Reporter:
            maza256 Mark Stevens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: