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
721a6a5e
Commit
721a6a5e
authored
Mar 27, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugins.test_sql_service --valgrind
plugin var check function must store the new variable value in *save
parent
f50694c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
plugin/test_sql_service/test_sql_service.c
plugin/test_sql_service/test_sql_service.c
+2
-0
No files found.
plugin/test_sql_service/test_sql_service.c
View file @
721a6a5e
...
...
@@ -129,6 +129,7 @@ void auditing(MYSQL_THD thd, unsigned int event_class, const void *ev)
static
int
run_test
(
MYSQL_THD
thd
,
struct
st_mysql_sys_var
*
var
,
void
*
save
,
struct
st_mysql_value
*
value
)
{
*
(
my_bool
*
)
save
=
1
;
// must initialize the return value
return
(
test_passed
=
(
do_tests
()
==
0
))
==
0
;
}
...
...
@@ -139,6 +140,7 @@ static int run_sql(MYSQL *mysql, void *save, struct st_mysql_value *value)
int
len
=
0
;
MYSQL_RES
*
res
;
*
(
my_bool
*
)
save
=
1
;
// must initialize the return value
str
=
value
->
val_str
(
value
,
NULL
,
&
len
);
if
(
mysql_real_query
(
mysql
,
str
,
len
))
...
...
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