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

Provide a callback function to set per-process defaults for various client params

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      This is specifically required for server (which includes a mysql client used by replication, and also federated, spider,connect engines).
      currently server-wide defaults are set in my_net_local_init() here
      https://github.com/MariaDB/server/blob/10.1/sql/sql_client.cc

      The library-global callback in Connector/C should not operate on NET structure, instead it should operate on MYSQL.

      if user callback set, it should be called at the end of mysql_init(). Users are supposed to use it to set some mysql_options()

      Proposed prototype

      mariadb_set_init_callback( void (init_callback)(MYSQL *mysql))

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                georg Georg Richter
                Reporter:
                wlad Vladislav Vaintroub
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: