Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ee8dfc68
Commit
ee8dfc68
authored
May 10, 2018
by
Xiangyu Hu
Committed by
Vladislav Vaintroub
May 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add host name to session attributes.
parent
4a126bf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
sql-common/client.c
sql-common/client.c
+3
-0
No files found.
sql-common/client.c
View file @
ee8dfc68
...
@@ -3057,6 +3057,7 @@ set_connect_attributes(MYSQL *mysql, char *buff, size_t buf_len)
...
@@ -3057,6 +3057,7 @@ set_connect_attributes(MYSQL *mysql, char *buff, size_t buf_len)
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_client_name"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_client_name"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_os"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_os"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_platform"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_platform"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_host_name"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_pid"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_pid"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_thread"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_thread"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_client_version"
);
rc
+=
mysql_options
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_DELETE
,
"_client_version"
);
...
@@ -3072,6 +3073,8 @@ set_connect_attributes(MYSQL *mysql, char *buff, size_t buf_len)
...
@@ -3072,6 +3073,8 @@ set_connect_attributes(MYSQL *mysql, char *buff, size_t buf_len)
"_os"
,
SYSTEM_TYPE
);
"_os"
,
SYSTEM_TYPE
);
rc
+=
mysql_options4
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_ADD
,
rc
+=
mysql_options4
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_ADD
,
"_platform"
,
MACHINE_TYPE
);
"_platform"
,
MACHINE_TYPE
);
rc
+=
mysql_options4
(
mysql
,
MYSQL_OPT_CONNECT_ATTR_ADD
,
"_host_name"
,
mysql
->
host
);
#ifdef __WIN__
#ifdef __WIN__
snprintf
(
buff
,
buf_len
,
"%lu"
,
(
ulong
)
GetCurrentProcessId
());
snprintf
(
buff
,
buf_len
,
"%lu"
,
(
ulong
)
GetCurrentProcessId
());
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment