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
7827fec4
Commit
7827fec4
authored
Nov 22, 2005
by
pem@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set type and default correctly for local SP variables during parsing.
parent
6c2f6e29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-3
No files found.
sql/sql_yacc.yy
View file @
7827fec4
...
...
@@ -1605,13 +1605,14 @@ sp_decl:
for (uint i = max-$2 ; i < max ; i++)
{
sp_instr_set *in;
uint off= ctx->pvar_context2index(i);
ctx->set_type(
i
, type);
ctx->set_type(
off
, type);
if (! has_default)
it= new Item_null(); /* QQ Set to the type with null_value? */
in = new sp_instr_set(lex->sphead->instructions(),
ctx,
ctx->pvar_context2index(i)
,
off
,
it, type, lex,
(i == max - 1));
...
...
@@ -1620,7 +1621,7 @@ sp_decl:
freeing LEX.
*/
lex->sphead->add_instr(in);
ctx->set_default(
i
, it);
ctx->set_default(
off
, it);
}
lex->sphead->restore_lex(YYTHD);
$$.vars= $2;
...
...
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