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
a01ed154
Commit
a01ed154
authored
Feb 15, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic changes of the fix for bug#17289 (no privileges checks in EVENTS), before push
parent
9db6d13c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
sql/event_executor.cc
sql/event_executor.cc
+6
-9
No files found.
sql/event_executor.cc
View file @
a01ed154
...
...
@@ -638,18 +638,18 @@ event_executor_worker(void *event_void)
{
int
ret
;
sql_print_information
(
"
EVEX EXECUTING
event %s.%s [EXPR:%d]"
,
sql_print_information
(
"
SCHEDULER: Executing
event %s.%s [EXPR:%d]"
,
event
->
dbname
.
str
,
event
->
name
.
str
,(
int
)
event
->
expression
);
ret
=
event
->
execute
(
thd
,
&
worker_mem_root
);
sql_print_information
(
" EVEX EXECUTED event %s.%s [EXPR:%d]. RetCode=%d"
,
evex_print_warnings
(
thd
,
event
);
sql_print_information
(
"SCHEDULER: Executed event %s.%s [EXPR:%d]. RetCode=%d"
,
event
->
dbname
.
str
,
event
->
name
.
str
,
(
int
)
event
->
expression
,
ret
);
if
(
ret
==
EVEX_COMPILE_ERROR
)
sql_print_information
(
"
EVEX
COMPILE ERROR for event %s.%s"
,
sql_print_information
(
"
SCHEDULER:
COMPILE ERROR for event %s.%s"
,
event
->
dbname
.
str
,
event
->
name
.
str
);
evex_print_warnings
(
thd
,
event
);
}
if
((
event
->
flags
&
EVENT_EXEC_NO_MORE
)
||
event
->
status
==
MYSQL_EVENT_DISABLED
)
{
...
...
@@ -837,6 +837,7 @@ sys_var_event_executor::update(THD *thd, set_var *var)
DBUG_RETURN
(
0
);
}
extern
LEX_STRING
warning_level_names
[];
typedef
void
(
*
sql_print_xxx_func
)(
const
char
*
format
,
...);
...
...
@@ -847,6 +848,7 @@ static sql_print_xxx_func sql_print_xxx_handlers[3] =
sql_print_error
};
/*
Prints the stack of infos, warnings, errors from thd to
the console so it can be fetched by the logs-into-tables and
...
...
@@ -892,15 +894,10 @@ evex_print_warnings(THD *thd, event_timed *et)
}
err_msg
.
append
(
prefix
);
err_msg
.
append
(
'['
);
err_msg
.
append
(
warning_level_names
[
err
->
level
].
str
,
warning_level_names
[
err
->
level
].
length
,
system_charset_info
);
err_msg
.
append
(
"] ["
);
err_msg
.
append
(
err
->
msg
,
strlen
(
err
->
msg
),
system_charset_info
);
err_msg
.
append
(
"]"
);
DBUG_ASSERT
(
err
->
level
<
3
);
(
sql_print_xxx_handlers
[
err
->
level
])(
"%*s"
,
err_msg
.
length
(),
err_msg
.
c_ptr
());
// sql_print_information("%*s", err_msg.length(), err_msg.c_ptr());
}
...
...
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