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
4fb5d78d
Commit
4fb5d78d
authored
Nov 03, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0 sql/sql_yacc.yy: Auto merged
parents
614cda69
ebbe5e39
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
17 deletions
+27
-17
mysql-test/r/sp.result
mysql-test/r/sp.result
+2
-2
mysql-test/t/sp.test
mysql-test/t/sp.test
+2
-2
sql/sql_yacc.yy
sql/sql_yacc.yy
+23
-13
No files found.
mysql-test/r/sp.result
View file @
4fb5d78d
...
@@ -851,8 +851,8 @@ repeat
...
@@ -851,8 +851,8 @@ repeat
begin
begin
declare a char(16);
declare a char(16);
declare b,c int;
declare b,c int;
fetch c1 into a, b;
fetch
from
c1 into a, b;
fetch c2 into c;
fetch
next from
c2 into c;
if not done then
if not done then
if b < c then
if b < c then
insert into test.t3 values (a, b);
insert into test.t3 values (a, b);
...
...
mysql-test/t/sp.test
View file @
4fb5d78d
...
@@ -953,8 +953,8 @@ begin
...
@@ -953,8 +953,8 @@ begin
declare
a
char
(
16
);
declare
a
char
(
16
);
declare
b
,
c
int
;
declare
b
,
c
int
;
fetch
c1
into
a
,
b
;
fetch
from
c1
into
a
,
b
;
fetch
c2
into
c
;
fetch
next
from
c2
into
c
;
if
not
done
then
if
not
done
then
if
b
<
c
then
if
b
<
c
then
insert
into
test
.
t3
values
(
a
,
b
);
insert
into
test
.
t3
values
(
a
,
b
);
...
...
sql/sql_yacc.yy
View file @
4fb5d78d
...
@@ -793,7 +793,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
...
@@ -793,7 +793,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
sp_c_chistics sp_a_chistics sp_chistic sp_c_chistic
sp_c_chistics sp_a_chistics sp_chistic sp_c_chistic
END_OF_INPUT
END_OF_INPUT
%type <NONE> call sp_proc_stmts sp_proc_stmt
%type <NONE> call sp_proc_stmts sp_proc_stmt
s1 sp_proc_stmt
%type <num> sp_decl_idents sp_opt_inout sp_handler_type sp_hcond_list
%type <num> sp_decl_idents sp_opt_inout sp_handler_type sp_hcond_list
%type <spcondtype> sp_cond sp_hcond
%type <spcondtype> sp_cond sp_hcond
%type <spblock> sp_decls sp_decl
%type <spblock> sp_decls sp_decl
...
@@ -1508,7 +1508,11 @@ sp_opt_inout:
...
@@ -1508,7 +1508,11 @@ sp_opt_inout:
sp_proc_stmts:
sp_proc_stmts:
/* Empty */ {}
/* Empty */ {}
| sp_proc_stmts { Lex->query_tables= 0; } sp_proc_stmt ';'
| sp_proc_stmts { Lex->query_tables= 0; } sp_proc_stmt ';'
;
sp_proc_stmts1:
sp_proc_stmt ';' {}
| sp_proc_stmts1 { Lex->query_tables= 0; } sp_proc_stmt ';'
;
;
sp_decls:
sp_decls:
...
@@ -2071,16 +2075,16 @@ sp_proc_stmt:
...
@@ -2071,16 +2075,16 @@ sp_proc_stmt:
i= new sp_instr_copen(sp->instructions(), lex->spcont, offset);
i= new sp_instr_copen(sp->instructions(), lex->spcont, offset);
sp->add_instr(i);
sp->add_instr(i);
}
}
| FETCH_SYM ident INTO
| FETCH_SYM
sp_opt_fetch_noise
ident INTO
{
{
LEX *lex= Lex;
LEX *lex= Lex;
sp_head *sp= lex->sphead;
sp_head *sp= lex->sphead;
uint offset;
uint offset;
sp_instr_cfetch *i;
sp_instr_cfetch *i;
if (! lex->spcont->find_cursor(&$
2
, &offset))
if (! lex->spcont->find_cursor(&$
3
, &offset))
{
{
net_printf(YYTHD, ER_SP_CURSOR_MISMATCH, $
2
.str);
net_printf(YYTHD, ER_SP_CURSOR_MISMATCH, $
3
.str);
YYABORT;
YYABORT;
}
}
i= new sp_instr_cfetch(sp->instructions(), lex->spcont, offset);
i= new sp_instr_cfetch(sp->instructions(), lex->spcont, offset);
...
@@ -2105,6 +2109,12 @@ sp_proc_stmt:
...
@@ -2105,6 +2109,12 @@ sp_proc_stmt:
}
}
;
;
sp_opt_fetch_noise:
/* Empty */
| NEXT_SYM FROM
| FROM
;
sp_fetch_list:
sp_fetch_list:
ident
ident
{
{
...
@@ -2165,7 +2175,7 @@ sp_if:
...
@@ -2165,7 +2175,7 @@ sp_if:
sp->push_backpatch(i, ctx->push_label((char *)"", 0));
sp->push_backpatch(i, ctx->push_label((char *)"", 0));
sp->add_instr(i);
sp->add_instr(i);
}
}
sp_proc_stmts
sp_proc_stmts
1
{
{
sp_head *sp= Lex->sphead;
sp_head *sp= Lex->sphead;
sp_pcontext *ctx= Lex->spcont;
sp_pcontext *ctx= Lex->spcont;
...
@@ -2187,7 +2197,7 @@ sp_if:
...
@@ -2187,7 +2197,7 @@ sp_if:
sp_elseifs:
sp_elseifs:
/* Empty */
/* Empty */
| ELSEIF_SYM sp_if
| ELSEIF_SYM sp_if
| ELSE sp_proc_stmts
| ELSE sp_proc_stmts
1
;
;
sp_case:
sp_case:
...
@@ -2219,7 +2229,7 @@ sp_case:
...
@@ -2219,7 +2229,7 @@ sp_case:
lex->query_tables= 0;
lex->query_tables= 0;
sp->add_instr(i);
sp->add_instr(i);
}
}
sp_proc_stmts
sp_proc_stmts
1
{
{
sp_head *sp= Lex->sphead;
sp_head *sp= Lex->sphead;
sp_pcontext *ctx= Lex->spcont;
sp_pcontext *ctx= Lex->spcont;
...
@@ -2248,7 +2258,7 @@ sp_whens:
...
@@ -2248,7 +2258,7 @@ sp_whens:
sp->add_instr(i);
sp->add_instr(i);
}
}
| ELSE sp_proc_stmts {}
| ELSE sp_proc_stmts
1
{}
| WHEN_SYM sp_case {}
| WHEN_SYM sp_case {}
;
;
...
@@ -2326,7 +2336,7 @@ sp_unlabeled_control:
...
@@ -2326,7 +2336,7 @@ sp_unlabeled_control:
lex->spcont= ctx->pop_context();
lex->spcont= ctx->pop_context();
}
}
| LOOP_SYM
| LOOP_SYM
sp_proc_stmts END LOOP_SYM
sp_proc_stmts
1
END LOOP_SYM
{
{
LEX *lex= Lex;
LEX *lex= Lex;
uint ip= lex->sphead->instructions();
uint ip= lex->sphead->instructions();
...
@@ -2349,7 +2359,7 @@ sp_unlabeled_control:
...
@@ -2349,7 +2359,7 @@ sp_unlabeled_control:
lex->query_tables= 0;
lex->query_tables= 0;
sp->add_instr(i);
sp->add_instr(i);
}
}
sp_proc_stmts END WHILE_SYM
sp_proc_stmts
1
END WHILE_SYM
{
{
LEX *lex= Lex;
LEX *lex= Lex;
uint ip= lex->sphead->instructions();
uint ip= lex->sphead->instructions();
...
@@ -2358,7 +2368,7 @@ sp_unlabeled_control:
...
@@ -2358,7 +2368,7 @@ sp_unlabeled_control:
lex->sphead->add_instr(i);
lex->sphead->add_instr(i);
}
}
| REPEAT_SYM sp_proc_stmts UNTIL_SYM expr END REPEAT_SYM
| REPEAT_SYM sp_proc_stmts
1
UNTIL_SYM expr END REPEAT_SYM
{
{
LEX *lex= Lex;
LEX *lex= Lex;
uint ip= lex->sphead->instructions();
uint ip= lex->sphead->instructions();
...
@@ -5491,7 +5501,7 @@ drop:
...
@@ -5491,7 +5501,7 @@ drop:
lex->drop_if_exists=$3;
lex->drop_if_exists=$3;
lex->name=$4.str;
lex->name=$4.str;
}
}
| DROP FUNCTION_SYM if_exists sp_name
opt_restrict
| DROP FUNCTION_SYM if_exists sp_name
{
{
LEX *lex=Lex;
LEX *lex=Lex;
if (lex->sphead)
if (lex->sphead)
...
@@ -5503,7 +5513,7 @@ drop:
...
@@ -5503,7 +5513,7 @@ drop:
lex->drop_if_exists= $3;
lex->drop_if_exists= $3;
lex->spname= $4;
lex->spname= $4;
}
}
| DROP PROCEDURE if_exists sp_name
opt_restrict
| DROP PROCEDURE if_exists sp_name
{
{
LEX *lex=Lex;
LEX *lex=Lex;
if (lex->sphead)
if (lex->sphead)
...
...
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