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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
00b188cc
Commit
00b188cc
authored
Feb 15, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build fixes
parent
a613782f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
sql/event.cc
sql/event.cc
+1
-1
sql/event_timed.cc
sql/event_timed.cc
+6
-1
sql/set_var.cc
sql/set_var.cc
+1
-1
No files found.
sql/event.cc
View file @
00b188cc
...
@@ -1239,7 +1239,7 @@ int db_drop_event(THD *thd, event_timed *et, bool drop_if_exists,
...
@@ -1239,7 +1239,7 @@ int db_drop_event(THD *thd, event_timed *et, bool drop_if_exists,
{
{
TABLE
*
table
;
TABLE
*
table
;
Open_tables_state
backup
;
Open_tables_state
backup
;
u
int
ret
;
int
ret
;
DBUG_ENTER
(
"db_drop_event"
);
DBUG_ENTER
(
"db_drop_event"
);
ret
=
EVEX_OPEN_TABLE_FAILED
;
ret
=
EVEX_OPEN_TABLE_FAILED
;
...
...
sql/event_timed.cc
View file @
00b188cc
...
@@ -1093,6 +1093,7 @@ event_timed::execute(THD *thd, MEM_ROOT *mem_root)
...
@@ -1093,6 +1093,7 @@ event_timed::execute(THD *thd, MEM_ROOT *mem_root)
DBUG_PRINT
(
"info"
,
(
"master_access=%d db_access=%d"
,
DBUG_PRINT
(
"info"
,
(
"master_access=%d db_access=%d"
,
thd
->
security_ctx
->
master_access
,
thd
->
security_ctx
->
db_access
));
thd
->
security_ctx
->
master_access
,
thd
->
security_ctx
->
db_access
));
change_security_context
(
thd
,
&
save_ctx
);
change_security_context
(
thd
,
&
save_ctx
);
DBUG_PRINT
(
"info"
,
(
"master_access=%d db_access=%d"
,
DBUG_PRINT
(
"info"
,
(
"master_access=%d db_access=%d"
,
thd
->
security_ctx
->
master_access
,
thd
->
security_ctx
->
db_access
));
thd
->
security_ctx
->
master_access
,
thd
->
security_ctx
->
db_access
));
if
(
mysql_change_db
(
thd
,
dbname
.
str
,
0
))
if
(
mysql_change_db
(
thd
,
dbname
.
str
,
0
))
...
@@ -1108,6 +1109,7 @@ event_timed::execute(THD *thd, MEM_ROOT *mem_root)
...
@@ -1108,6 +1109,7 @@ event_timed::execute(THD *thd, MEM_ROOT *mem_root)
ret
=
-
99
;
ret
=
-
99
;
}
}
restore_security_context
(
thd
,
save_ctx
);
restore_security_context
(
thd
,
save_ctx
);
DBUG_PRINT
(
"info"
,
(
"master_access=%d db_access=%d"
,
DBUG_PRINT
(
"info"
,
(
"master_access=%d db_access=%d"
,
thd
->
security_ctx
->
master_access
,
thd
->
security_ctx
->
db_access
));
thd
->
security_ctx
->
master_access
,
thd
->
security_ctx
->
db_access
));
...
@@ -1145,6 +1147,7 @@ event_timed::change_security_context(THD *thd, Security_context **backup)
...
@@ -1145,6 +1147,7 @@ event_timed::change_security_context(THD *thd, Security_context **backup)
{
{
DBUG_ENTER
(
"event_timed::change_security_context"
);
DBUG_ENTER
(
"event_timed::change_security_context"
);
DBUG_PRINT
(
"info"
,(
"%s@%s@%s"
,
definer_user
.
str
,
definer_host
.
str
,
dbname
.
str
));
DBUG_PRINT
(
"info"
,(
"%s@%s@%s"
,
definer_user
.
str
,
definer_host
.
str
,
dbname
.
str
));
#ifndef NO_EMBEDDED_ACCESS_CHECKS
*
backup
=
0
;
*
backup
=
0
;
if
(
acl_getroot_no_password
(
&
sphead
->
m_security_ctx
,
definer_user
.
str
,
if
(
acl_getroot_no_password
(
&
sphead
->
m_security_ctx
,
definer_user
.
str
,
definer_host
.
str
,
definer_host
.
str
,
dbname
.
str
))
definer_host
.
str
,
definer_host
.
str
,
dbname
.
str
))
...
@@ -1154,7 +1157,7 @@ event_timed::change_security_context(THD *thd, Security_context **backup)
...
@@ -1154,7 +1157,7 @@ event_timed::change_security_context(THD *thd, Security_context **backup)
}
}
*
backup
=
thd
->
security_ctx
;
*
backup
=
thd
->
security_ctx
;
thd
->
security_ctx
=
&
sphead
->
m_security_ctx
;
thd
->
security_ctx
=
&
sphead
->
m_security_ctx
;
#endif
DBUG_RETURN
(
FALSE
);
DBUG_RETURN
(
FALSE
);
}
}
...
@@ -1171,8 +1174,10 @@ void
...
@@ -1171,8 +1174,10 @@ void
event_timed
::
restore_security_context
(
THD
*
thd
,
Security_context
*
backup
)
event_timed
::
restore_security_context
(
THD
*
thd
,
Security_context
*
backup
)
{
{
DBUG_ENTER
(
"event_timed::change_security_context"
);
DBUG_ENTER
(
"event_timed::change_security_context"
);
#ifndef NO_EMBEDDED_ACCESS_CHECKS
if
(
backup
)
if
(
backup
)
thd
->
security_ctx
=
backup
;
thd
->
security_ctx
=
backup
;
#endif
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
...
sql/set_var.cc
View file @
00b188cc
...
@@ -3488,7 +3488,7 @@ byte *sys_var_thd_dbug::value_ptr(THD *thd, enum_var_type type, LEX_STRING *b)
...
@@ -3488,7 +3488,7 @@ byte *sys_var_thd_dbug::value_ptr(THD *thd, enum_var_type type, LEX_STRING *b)
DBUG_EXPLAIN_INITIAL
(
buf
,
sizeof
(
buf
));
DBUG_EXPLAIN_INITIAL
(
buf
,
sizeof
(
buf
));
else
else
DBUG_EXPLAIN
(
buf
,
sizeof
(
buf
));
DBUG_EXPLAIN
(
buf
,
sizeof
(
buf
));
(
byte
*
)
thd
->
strdup
(
buf
);
return
(
byte
*
)
thd
->
strdup
(
buf
);
}
}
/****************************************************************************
/****************************************************************************
...
...
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