Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-229

Add parameters that correspond to MYSQL_READ_DEFAULT_FILE and MYSQL_READ_DEFAULT_GROUP options from MariaDB Connector/C

Details

    Description

      MariaDB Connector/C allows an application to read a MariaDB configuration file, and it also allows the application to specify the option group within the configuration file. The MYSQL_READ_DEFAULT_FILE and MYSQL_READ_DEFAULT_GROUP options are used for this:

      MYSQL_READ_DEFAULT_FILE:

      MYSQL_READ_DEFAULT_FILE: Read options from named option or my.cnf. To read from the my.cnf file a NULL pointer has to be passed instead of a file name.

      mysql_optionsv(mysql, MYSQL_READ_DEFAULT_FILE, (void *)"./my_conf.cnf");

      MariaDB Connector/C will not read the configuration by default. If MYSQL_READ_DEFAULT_FILE is specified the following sections will be always processed:

      [client]
      [client-server]
      [client-mariadb]

      MYSQL_READ_DEFAULT_GROUP:

      MYSQL_READ_DEFAULT_GROUP: Read options from the named group from my.cnf or the file specified with MYSQL_READ_DEFAULT_FILE.

      mysql_optionsv(mysql, MYSQL_READ_DEFAULT_GROUP, (void *)"my_section");

      https://mariadb.com/kb/en/library/mysql_optionsv/#options

      It might be useful if MariaDB Connector/ODBC allowed users to configure an ODBC data source to read options from a configuration file.

      Attachments

        Issue Links

          Activity

            GeoffMontee Geoff Montee (Inactive) created issue -
            GeoffMontee Geoff Montee (Inactive) made changes -
            Field Original Value New Value
            Description MariaDB Connector/C allows an application to read a MariaDB configuration file, and it also allows the application to specify the option group within the configuration file. The MYSQL_READ_DEFAULT_FILE and MYSQL_READ_DEFAULT_GROUP options are used for this:

            MYSQL_READ_DEFAULT_FILE:

            {quote}
            MYSQL_READ_DEFAULT_FILE: Read options from named option or my.cnf. To read from the my.cnf file a NULL pointer has to be passed instead of a file name.

            mysql_optionsv(mysql, MYSQL_READ_DEFAULT_FILE, (void *)"./my_conf.cnf");

            MariaDB Connector/C will not read the configuration by default. If MYSQL_READ_DEFAULT_FILE is specified the following sections will be always processed:

            [client]
            [client-server]
            [client-mariadb]
            {quote}

            MYSQL_READ_DEFAULT_GROUP:

            {quote}
            MYSQL_READ_DEFAULT_GROUP: Read options from the named group from my.cnf or the file specified with MYSQL_READ_DEFAULT_FILE.

            mysql_optionsv(mysql, MYSQL_READ_DEFAULT_GROUP, (void *)"my_section");
            {quote}

            It might be useful if MariaDB Connector/ODBC allowed users to configure an ODBC data source to read options from a configuration file.
            MariaDB Connector/C allows an application to read a MariaDB configuration file, and it also allows the application to specify the option group within the configuration file. The MYSQL_READ_DEFAULT_FILE and MYSQL_READ_DEFAULT_GROUP options are used for this:

            MYSQL_READ_DEFAULT_FILE:

            {quote}
            MYSQL_READ_DEFAULT_FILE: Read options from named option or my.cnf. To read from the my.cnf file a NULL pointer has to be passed instead of a file name.

            mysql_optionsv(mysql, MYSQL_READ_DEFAULT_FILE, (void *)"./my_conf.cnf");

            MariaDB Connector/C will not read the configuration by default. If MYSQL_READ_DEFAULT_FILE is specified the following sections will be always processed:

            [client]
            [client-server]
            [client-mariadb]
            {quote}

            MYSQL_READ_DEFAULT_GROUP:

            {quote}
            MYSQL_READ_DEFAULT_GROUP: Read options from the named group from my.cnf or the file specified with MYSQL_READ_DEFAULT_FILE.

            mysql_optionsv(mysql, MYSQL_READ_DEFAULT_GROUP, (void *)"my_section");
            {quote}

            https://mariadb.com/kb/en/library/mysql_optionsv/#options

            It might be useful if MariaDB Connector/ODBC allowed users to configure an ODBC data source to read options from a configuration file.
            Lawrin Lawrin Novitsky made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            Lawrin Lawrin Novitsky made changes -
            Fix Version/s 2.0.19 [ 23200 ]
            Fix Version/s 3.0.9 [ 23301 ]
            Fix Version/s 3.1.1 [ 23400 ]
            Fix Version/s 3.0 [ 22524 ]
            Fix Version/s 3.1 [ 22900 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 93012 ] MariaDB v4 [ 128598 ]
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 168321

            People

              Lawrin Lawrin Novitsky
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.