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
44663777
Commit
44663777
authored
Jun 14, 2007
by
malff/marcsql@weblab.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into weblab.(none):/home/marcsql/TREE/mysql-5.1-27857
parents
ef2bca44
754e9788
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
sql/sp_head.cc
sql/sp_head.cc
+7
-0
sql/sp_head.h
sql/sp_head.h
+5
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-4
No files found.
sql/sp_head.cc
View file @
44663777
...
...
@@ -2053,6 +2053,13 @@ sp_head::set_info(longlong created, longlong modified,
}
void
sp_head
::
set_body_begin_ptr
(
Lex_input_stream
*
lip
,
const
char
*
begin_ptr
)
{
m_body_begin
=
begin_ptr
;
}
void
sp_head
::
set_definer
(
const
char
*
definer
,
uint
definerlen
)
{
...
...
sql/sp_head.h
View file @
44663777
...
...
@@ -178,8 +178,11 @@ class sp_head :private Query_arena
// Pointers set during parsing
const
char
*
m_param_begin
;
const
char
*
m_param_end
;
private:
const
char
*
m_body_begin
;
public:
/*
Security context for stored routine which should be run under
definer privileges.
...
...
@@ -297,6 +300,8 @@ class sp_head :private Query_arena
void
set_info
(
longlong
created
,
longlong
modified
,
st_sp_chistics
*
chistics
,
ulong
sql_mode
);
void
set_body_begin_ptr
(
Lex_input_stream
*
lip
,
const
char
*
begin_ptr
);
void
set_definer
(
const
char
*
definer
,
uint
definerlen
);
void
set_definer
(
const
LEX_STRING
*
user_name
,
const
LEX_STRING
*
host_name
);
...
...
sql/sql_yacc.yy
View file @
44663777
...
...
@@ -1872,7 +1872,7 @@ ev_sql_stmt:
bzero((char *)&lex->sp_chistics, sizeof(st_sp_chistics));
lex->sphead->m_chistics= &lex->sp_chistics;
lex->sphead->
m_body_begin= lip->get_cpp_ptr(
);
lex->sphead->
set_body_begin_ptr(lip, lip->get_cpp_ptr()
);
}
ev_sql_stmt_inner
{
...
...
@@ -2066,7 +2066,7 @@ create_function_tail:
Lex_input_stream *lip= thd->m_lip;
lex->sphead->m_chistics= &lex->sp_chistics;
lex->sphead->
m_body_begin= lip->get_cpp_tok_start(
);
lex->sphead->
set_body_begin_ptr(lip, lip->get_cpp_tok_start()
);
}
sp_proc_stmt
{
...
...
@@ -11489,7 +11489,7 @@ trigger_tail:
bzero((char *)&lex->sp_chistics, sizeof(st_sp_chistics));
lex->sphead->m_chistics= &lex->sp_chistics;
lex->sphead->
m_body_begin= lip->get_cpp_ptr(
);
lex->sphead->
set_body_begin_ptr(lip, lip->get_cpp_ptr()
);
}
sp_proc_stmt /* $16 */
{ /* $17 */
...
...
@@ -11592,7 +11592,7 @@ sp_tail:
Lex_input_stream *lip= thd->m_lip;
lex->sphead->m_chistics= &lex->sp_chistics;
lex->sphead->
m_body_begin= lip->get_cpp_tok_start(
);
lex->sphead->
set_body_begin_ptr(lip, lip->get_cpp_tok_start()
);
}
sp_proc_stmt
{
...
...
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