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
505a11d9
Commit
505a11d9
authored
Jun 30, 2017
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding the "const" qualifier to st_sp_chistics parameters in a few functions.
parent
95979d2b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
sql/sp.cc
sql/sp.cc
+4
-4
sql/sp.h
sql/sp.h
+2
-2
sql/sp_head.cc
sql/sp_head.cc
+1
-1
sql/sp_head.h
sql/sp_head.h
+1
-1
No files found.
sql/sp.cc
View file @
505a11d9
...
@@ -41,7 +41,7 @@ static int
...
@@ -41,7 +41,7 @@ static int
db_load_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
,
db_load_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
,
sp_head
**
sphp
,
sp_head
**
sphp
,
sql_mode_t
sql_mode
,
const
char
*
params
,
const
char
*
returns
,
sql_mode_t
sql_mode
,
const
char
*
params
,
const
char
*
returns
,
const
char
*
body
,
st_sp_chistics
&
chistics
,
const
char
*
body
,
const
st_sp_chistics
&
chistics
,
LEX_CSTRING
*
definer_user_name
,
LEX_CSTRING
*
definer_user_name
,
LEX_CSTRING
*
definer_host_name
,
LEX_CSTRING
*
definer_host_name
,
longlong
created
,
longlong
modified
,
longlong
created
,
longlong
modified
,
...
@@ -813,7 +813,7 @@ static int
...
@@ -813,7 +813,7 @@ static int
db_load_routine
(
THD
*
thd
,
stored_procedure_type
type
,
db_load_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
,
sp_head
**
sphp
,
const
sp_name
*
name
,
sp_head
**
sphp
,
sql_mode_t
sql_mode
,
const
char
*
params
,
const
char
*
returns
,
sql_mode_t
sql_mode
,
const
char
*
params
,
const
char
*
returns
,
const
char
*
body
,
st_sp_chistics
&
chistics
,
const
char
*
body
,
const
st_sp_chistics
&
chistics
,
LEX_CSTRING
*
definer_user_name
,
LEX_CSTRING
*
definer_user_name
,
LEX_CSTRING
*
definer_host_name
,
LEX_CSTRING
*
definer_host_name
,
longlong
created
,
longlong
modified
,
longlong
created
,
longlong
modified
,
...
@@ -1392,7 +1392,7 @@ sp_drop_routine(THD *thd, stored_procedure_type type, const sp_name *name)
...
@@ -1392,7 +1392,7 @@ sp_drop_routine(THD *thd, stored_procedure_type type, const sp_name *name)
int
int
sp_update_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
,
sp_update_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
,
st_sp_chistics
*
chistics
)
const
st_sp_chistics
*
chistics
)
{
{
TABLE
*
table
;
TABLE
*
table
;
int
ret
;
int
ret
;
...
@@ -2201,7 +2201,7 @@ show_create_sp(THD *thd, String *buf,
...
@@ -2201,7 +2201,7 @@ show_create_sp(THD *thd, String *buf,
const
char
*
params
,
ulong
paramslen
,
const
char
*
params
,
ulong
paramslen
,
const
char
*
returns
,
ulong
returnslen
,
const
char
*
returns
,
ulong
returnslen
,
const
char
*
body
,
ulong
bodylen
,
const
char
*
body
,
ulong
bodylen
,
st_sp_chistics
*
chistics
,
const
st_sp_chistics
*
chistics
,
const
LEX_CSTRING
*
definer_user
,
const
LEX_CSTRING
*
definer_user
,
const
LEX_CSTRING
*
definer_host
,
const
LEX_CSTRING
*
definer_host
,
sql_mode_t
sql_mode
)
sql_mode_t
sql_mode
)
...
...
sql/sp.h
View file @
505a11d9
...
@@ -145,7 +145,7 @@ sp_create_routine(THD *thd, stored_procedure_type type, sp_head *sp);
...
@@ -145,7 +145,7 @@ sp_create_routine(THD *thd, stored_procedure_type type, sp_head *sp);
int
int
sp_update_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
,
sp_update_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
,
st_sp_chistics
*
chistics
);
const
st_sp_chistics
*
chistics
);
int
int
sp_drop_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
);
sp_drop_routine
(
THD
*
thd
,
stored_procedure_type
type
,
const
sp_name
*
name
);
...
@@ -240,7 +240,7 @@ bool show_create_sp(THD *thd, String *buf,
...
@@ -240,7 +240,7 @@ bool show_create_sp(THD *thd, String *buf,
const
char
*
params
,
ulong
paramslen
,
const
char
*
params
,
ulong
paramslen
,
const
char
*
returns
,
ulong
returnslen
,
const
char
*
returns
,
ulong
returnslen
,
const
char
*
body
,
ulong
bodylen
,
const
char
*
body
,
ulong
bodylen
,
st_sp_chistics
*
chistics
,
const
st_sp_chistics
*
chistics
,
const
LEX_CSTRING
*
definer_user
,
const
LEX_CSTRING
*
definer_user
,
const
LEX_CSTRING
*
definer_host
,
const
LEX_CSTRING
*
definer_host
,
sql_mode_t
sql_mode
);
sql_mode_t
sql_mode
);
...
...
sql/sp_head.cc
View file @
505a11d9
...
@@ -2455,7 +2455,7 @@ sp_head::sp_add_instr_cpush_for_cursors(THD *thd, sp_pcontext *pcontext)
...
@@ -2455,7 +2455,7 @@ sp_head::sp_add_instr_cpush_for_cursors(THD *thd, sp_pcontext *pcontext)
void
void
sp_head
::
set_info
(
longlong
created
,
longlong
modified
,
sp_head
::
set_info
(
longlong
created
,
longlong
modified
,
st_sp_chistics
*
chistics
,
sql_mode_t
sql_mode
)
const
st_sp_chistics
*
chistics
,
sql_mode_t
sql_mode
)
{
{
m_created
=
created
;
m_created
=
created
;
m_modified
=
modified
;
m_modified
=
modified
;
...
...
sql/sp_head.h
View file @
505a11d9
...
@@ -673,7 +673,7 @@ class sp_head :private Query_arena,
...
@@ -673,7 +673,7 @@ class sp_head :private Query_arena,
}
}
void
set_info
(
longlong
created
,
longlong
modified
,
void
set_info
(
longlong
created
,
longlong
modified
,
st_sp_chistics
*
chistics
,
sql_mode_t
sql_mode
);
const
st_sp_chistics
*
chistics
,
sql_mode_t
sql_mode
);
void
set_definer
(
const
char
*
definer
,
uint
definerlen
);
void
set_definer
(
const
char
*
definer
,
uint
definerlen
);
void
set_definer
(
const
LEX_CSTRING
*
user_name
,
const
LEX_CSTRING
*
host_name
);
void
set_definer
(
const
LEX_CSTRING
*
user_name
,
const
LEX_CSTRING
*
host_name
);
...
...
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