mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.4' into 10.5
This commit is contained in:
@@ -35,11 +35,11 @@
|
||||
#include "my_sys.h"
|
||||
#include "mysqld_error.h"
|
||||
#endif // !MYSQL_PREPARED_STATEMENTS
|
||||
#if defined(__WIN__)
|
||||
#if defined(_WIN32)
|
||||
//#include <windows.h>
|
||||
#else // !__WIN__
|
||||
#else // !_WIN32
|
||||
#include "osutil.h"
|
||||
#endif // !__WIN__
|
||||
#endif // !_WIN32
|
||||
|
||||
#include "global.h"
|
||||
#include "plgdbsem.h"
|
||||
@@ -492,15 +492,15 @@ int MYSQLC::Open(PGLOBAL g, const char *host, const char *db,
|
||||
//mysql_options(m_DB, MYSQL_OPT_READ_TIMEOUT, &nrt);
|
||||
//mysql_options(m_DB, MYSQL_OPT_WRITE_TIMEOUT, ...);
|
||||
|
||||
#if defined(__WIN__)
|
||||
#if defined(_WIN32)
|
||||
if (!strcmp(host, ".")) {
|
||||
mysql_options(m_DB, MYSQL_OPT_NAMED_PIPE, NULL);
|
||||
pipe = mysqld_unix_port;
|
||||
} // endif host
|
||||
#else // !__WIN__
|
||||
#else // !_WIN32
|
||||
if (!strcmp(host, "localhost"))
|
||||
pipe = mysqld_unix_port;
|
||||
#endif // !__WIN__
|
||||
#endif // !_WIN32
|
||||
|
||||
#if 0
|
||||
if (pwd && !strcmp(pwd, "*")) {
|
||||
|
Reference in New Issue
Block a user