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

CONCPP connect URL overrides properties instead of the opposite.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Cannot Reproduce
    • N/A
    • N/A
    • General
    • None
    • Linux CentOS 7.7

    Description

      In the Connection::connect(SQLString &url, Properties &props) method, it seems that a property in the url will override a property in props, which I think is non-standard. In the following code will attempt to connect with the username "unknown" instead of "myuser"

         sql::Properties p;
         sql::Driver* driver = sql::mariadb::get_driver_instance();
         sql::Connection *conn;
       
         p["user"] = "myuser";
         conn = driver->connect("tcp://host?user=unknown", p);
      

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            karlsson Anders Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.