Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-359

host configuration option not picked up from .my.cnf

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 3.0.5
    • None
    • None
    • None
    • OS: Arch Linux

    Description

      When using read_default_file to specify connection credentials, the host option is not being picked up, although other options are. The client library then attempts to connect to the default local socket, which fails. When the host is passed directly in the code, it is correctly picked up.

      After some debugging and building from source, I suspect the issue was introduced in https://github.com/MariaDB/mariadb-connector-c/commit/184a16d2f1d0bb24bea6bcf23e1604093fef8f93. When applying the attached patch and thus reverting part of the commit, the host is correctly picked up again, although I am not sure what exactly the purpose of said commit is and whether the patch interferes with that.

      Attachments

        Activity

          People

            georg Georg Richter
            mherzberg Michael Herzberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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