1
0
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:
Vladislav Vaintroub
2016-09-12 16:05:02 +00:00
parent 15693a6da1
commit 110aa7ddca

View File

@@ -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;