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
|
else
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
if (mysql->options.protocol == MYSQL_PROTOCOL_MEMORY ||
|
if (mysql->options.protocol == MYSQL_PROTOCOL_MEMORY)
|
||||||
mysql->options.shared_memory_base_name)
|
|
||||||
{
|
{
|
||||||
cinfo.host= mysql->options.shared_memory_base_name;
|
cinfo.host= mysql->options.shared_memory_base_name;
|
||||||
cinfo.type= PVIO_TYPE_SHAREDMEM;
|
cinfo.type= PVIO_TYPE_SHAREDMEM;
|
||||||
|
Reference in New Issue
Block a user