1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix for CONC-135: Return value of mysql_get_socket() indicating "no

socket" not defined
mysql_get_socket now returns in case of error: MARIADB_INVALID_SOCKET
instead of INVALID_SOCKET (which isn't defined on several OS).
MARIADB_INVALID_SOCKET is defined as -1.
This commit is contained in:
Georg Richter
2015-07-01 15:31:32 +02:00
parent af04caf260
commit b1e0231b15
2 changed files with 2 additions and 1 deletions

View File

@@ -331,6 +331,7 @@ typedef struct st_mysql_time
#define AUTO_SEC_PART_DIGITS 31
#define SEC_PART_DIGITS 6
#define MARIADB_INVALID_SOCKET -1
/* Ansynchronous API constants */
#define MYSQL_WAIT_READ 1