[CONC-135] Return value of mysql_get_socket() indicating "no socket" not defined Created: 2015-06-28 Updated: 2015-07-01 Resolved: 2015-07-01 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 2.1 |
| Fix Version/s: | 3.0.0, 2.2.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Matt Fagan | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| 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. |
| Comments |
| Comment by Georg Richter [ 2015-07-01 ] |
|
mysql_get_socket function now returns MARIADB_INVALID_SOCKET (which is defined in mysql.h as -1) |