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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 3.0.0, 2.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      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

            People

            Assignee:
            georg Georg Richter
            Reporter:
            A812371 Matt Fagan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration