[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)

Generated at Thu Feb 08 03:03:08 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.