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
b50fa6da
Commit
b50fa6da
authored
Nov 26, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing the unused "field_type" parameter in
sp_head::fill_field_definition().
parent
253be36c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
sql/sp_head.cc
sql/sp_head.cc
+0
-2
sql/sp_head.h
sql/sp_head.h
+0
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+5
-8
No files found.
sql/sp_head.cc
View file @
b50fa6da
...
...
@@ -2332,7 +2332,6 @@ sp_head::backpatch(sp_label *lab)
@param[in] thd Thread handle
@param[in] lex Yacc parsing context
@param[in] field_type Field type
@param[out] field_def An instance of create_field to be filled
@retval
...
...
@@ -2343,7 +2342,6 @@ sp_head::backpatch(sp_label *lab)
bool
sp_head
::
fill_field_definition
(
THD
*
thd
,
LEX
*
lex
,
enum
enum_field_types
field_type
,
Column_definition
*
field_def
)
{
uint
unused1
=
0
;
...
...
sql/sp_head.h
View file @
b50fa6da
...
...
@@ -418,7 +418,6 @@ class sp_head :private Query_arena
TABLE
*
table
);
bool
fill_field_definition
(
THD
*
thd
,
LEX
*
lex
,
enum
enum_field_types
field_type
,
Column_definition
*
field_def
);
void
set_info
(
longlong
created
,
longlong
modified
,
...
...
sql/sql_yacc.yy
View file @
b50fa6da
...
...
@@ -2943,8 +2943,7 @@ sp_param_name_and_type:
sp_variable *spvar= $<spvar>2;
spvar->type= $3.field_type();
if (lex->sphead->fill_field_definition(thd, lex, $3.field_type(),
lex->last_field))
if (lex->sphead->fill_field_definition(thd, lex, lex->last_field))
{
MYSQL_YYABORT;
}
...
...
@@ -3039,7 +3038,6 @@ sp_decl:
LEX *lex= Lex;
sp_pcontext *pctx= lex->spcont;
uint num_vars= pctx->context_var_count();
enum enum_field_types var_type= $4.field_type();
Item *dflt_value_item= $5;
if (!dflt_value_item)
...
...
@@ -3062,11 +3060,11 @@ sp_decl:
if (!last)
spvar->field_def= *lex->last_field;
spvar->type=
var_type
;
spvar->type=
$4.field_type()
;
spvar->default_value= dflt_value_item;
spvar->field_def.field_name= spvar->name.str;
if (lex->sphead->fill_field_definition(thd, lex,
var_type,
if (lex->sphead->fill_field_definition(thd, lex,
&spvar->field_def))
{
MYSQL_YYABORT;
...
...
@@ -3081,7 +3079,7 @@ sp_decl:
pctx,
var_idx,
dflt_value_item,
var_type
,
$4.field_type()
,
lex,
last));
if (is == NULL ||
...
...
@@ -16337,8 +16335,7 @@ sf_tail:
}
type_with_opt_collate /* $11 */
{ /* $12 */
if (Lex->sphead->fill_field_definition(thd, Lex, $11.field_type(),
Lex->last_field))
if (Lex->sphead->fill_field_definition(thd, Lex, Lex->last_field))
MYSQL_YYABORT;
}
sp_c_chistics /* $13 */
...
...
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