Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-300

Test suite should not query featureCompatibilityVersion for server versions before 3.4

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The getFeatureCompatibilityVersion() test function introduced for PHPLIB-276 should only be called if the server version is 3.4+, as earlier versions of the database will raise an error a "no option found to get" error if we query the server for its FCV.

      Alternatively, we may want to rewrite the getFeatureCompatibilityVersion() so that is not simply a direct comparison of the FCV parameter. We can first do a server version check, and if the server is 3.2 or older, we can use the server version as the FCV for comparison and stop there. Otherwise, we query for the FCV parameter on 3.4+ servers and use that version for the comparison.

            Assignee:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: