Uploaded image for project: 'MariaDB Connector/C++'
  1. MariaDB Connector/C++
  2. CONCPP-129

Boolean false in the initializer list for Properties should not end up with true value of the option

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.3
    • 1.1.4
    • General
    • None

    Description

      Even though Properties is essentially map of strings, compiler will allow false value as null pointer(I only tried with VS atm, but that is enough), SQLString constructor makes empty string out of nullptr, empty option values are treated as true for boolean options - that allows just to put options to be set in the url w/out specifying values explicitly, and that kinda makes sense. but having false turning into true is rather confusing, so for Properties "" will mean false. Not sure if this is a bug

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            Lawrin Lawrin Novitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.