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
38b79d72
Commit
38b79d72
authored
Aug 11, 2021
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MENT-1019.
Audit-plugin related fixes.
parent
582cf12f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
sql/sql_audit.h
sql/sql_audit.h
+1
-1
sql/sql_prepare.cc
sql/sql_prepare.cc
+5
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+3
-3
No files found.
sql/sql_audit.h
View file @
38b79d72
...
...
@@ -155,7 +155,7 @@ void mysql_audit_general(THD *thd, uint event_subtype,
DBUG_ENTER
(
"mysql_audit_general"
);
if
(
mysql_audit_general_enabled
())
{
char
user_buff
[
MAX_USER_HOST_SIZE
];
char
user_buff
[
MAX_USER_HOST_SIZE
+
1
];
mysql_event_general
event
;
event
.
event_subclass
=
event_subtype
;
...
...
sql/sql_prepare.cc
View file @
38b79d72
...
...
@@ -3442,6 +3442,11 @@ static void mysql_stmt_execute_common(THD *thd,
stmt_id
==
LAST_STMT_ID
,
read_types
))
{
my_error
(
ER_MALFORMED_PACKET
,
MYF
(
0
));
/*
Let's set the thd->query_string so the audit plugin
can report the executed query that failed.
*/
thd
->
set_query_inner
(
stmt
->
query_string
);
DBUG_VOID_RETURN
;
}
...
...
tests/mysql_client_test.c
View file @
38b79d72
...
...
@@ -5256,10 +5256,10 @@ static void test_manual_sample()
{
unsigned
int
param_count
;
MYSQL_STMT
*
stmt
;
short
small_data
;
int
int_data
;
short
small_data
=
1
;
int
int_data
=
2
;
int
rc
;
char
str_data
[
50
];
char
str_data
[
50
]
=
"std_data"
;
ulonglong
affected_rows
;
MYSQL_BIND
my_bind
[
3
];
my_bool
is_null
;
...
...
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