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

Return value of mysql_get_socket() indicating "no socket" not defined

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.1
    • 3.0.0, 2.2.0
    • None
    • None
    • CentOS

    Description

      mysql_get_socket() returns INVALID_SOCKET if there is no socket connected. However, INVALID_SOCKET is only defined internally within mysql, not in mysql.h. On Windows (and probably other BSD based systems), INVALID_SOCKET is defined by OS as -1, so is not a problem. CentOS does not have this, so there is no way to compare for no socket.

      Attachments

        Activity

          A812371 Matt Fagan created issue -
          georg Georg Richter added a comment -

          mysql_get_socket function now returns MARIADB_INVALID_SOCKET (which is defined in mysql.h as -1)

          georg Georg Richter added a comment - mysql_get_socket function now returns MARIADB_INVALID_SOCKET (which is defined in mysql.h as -1)
          georg Georg Richter made changes -
          Field Original Value New Value
          Fix Version/s 3.0.0 [ 18700 ]
          Fix Version/s 2.2.0 [ 19500 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          julien.fritsch Julien Fritsch made changes -
          Workflow MariaDB connectors [ 70347 ] MariaDB v4 [ 160995 ]

          People

            georg Georg Richter
            A812371 Matt Fagan
            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.