You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Windows : Do not default connection protocol to SHM,only if
mysql->options.shared_memory_base_name is set. Only make SHM connections if mysql->options.protocol == MYSQL_PROTOCOL_MEMORY
This commit is contained in:
@@ -1223,8 +1223,7 @@ MYSQL *mthd_my_real_connect(MYSQL *mysql, const char *host, const char *user,
|
||||
else
|
||||
#endif
|
||||
#else
|
||||
if (mysql->options.protocol == MYSQL_PROTOCOL_MEMORY ||
|
||||
mysql->options.shared_memory_base_name)
|
||||
if (mysql->options.protocol == MYSQL_PROTOCOL_MEMORY)
|
||||
{
|
||||
cinfo.host= mysql->options.shared_memory_base_name;
|
||||
cinfo.type= PVIO_TYPE_SHAREDMEM;
|
||||
|
Reference in New Issue
Block a user