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

Statements in the 'init_command' is ignored during reconnection or server restart

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 3.0.10
    • N/A
    • None
    • None
    • Windows

    Description

      After reconnection or server start, the statement provided with MYSQL_INIT_COMMAND is being ignored.

      Attachments

        Activity

          georg Georg Richter added a comment -

          A test case should contain only a few lines which show how to reproduce a bug or an unexpected behavior. Nobody wants to read 600 lines of code and search the 3 lines which are related to this jira issue.

          If you specify a client flag in mysql_real_connect, don't use a number but a constant name which can be found in mariadb_com.h - The flag CLIENT_MYSQL (=1) is absolutely useless, since it is not in use anymore. Instead pass CLIENT_REMEMBER_OPTIONS as client flag to prevent releasing the options in case of a reconnect.

          georg Georg Richter added a comment - A test case should contain only a few lines which show how to reproduce a bug or an unexpected behavior. Nobody wants to read 600 lines of code and search the 3 lines which are related to this jira issue. If you specify a client flag in mysql_real_connect, don't use a number but a constant name which can be found in mariadb_com.h - The flag CLIENT_MYSQL (=1) is absolutely useless, since it is not in use anymore. Instead pass CLIENT_REMEMBER_OPTIONS as client flag to prevent releasing the options in case of a reconnect.
          deepshikha Deep Shikha added a comment -

          I have updated the client flag with CLIENT_REMEMBER_OPTIONS in mysql_real_connect, but still able to reproduce the issue.

          deepshikha Deep Shikha added a comment - I have updated the client flag with CLIENT_REMEMBER_OPTIONS in mysql_real_connect, but still able to reproduce the issue.

          People

            georg Georg Richter
            deepshikha Deep Shikha
            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.