mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Various syntax fixes in sql/sql_yacc.yy for stored procedures:
- No RESTICT|CASCADE in DROP SP (since it's not implemented)
- Added optional "noise" to FETCH: [[NEXT] FROM]
- At least one statement required in all block constructs except BEGIN-END
(where zero is allowed)
mysql-test/r/sp.result:
Modified test cases for optional [[NEXT] FROM] in FETCH.
mysql-test/t/sp.test:
Modified test cases for optional [[NEXT] FROM] in FETCH.
sql/sql_yacc.yy:
Various syntax fixes for stored procedures:
- No RESTICT|CASCADE in DROP SP (since it's not implemented)
- Added optional "noise" to FETCH: [[NEXT] FROM]
- At least one statement required in all block constructs except BEGIN-END
(where zero is allowed)
This commit is contained in:
parent
09e0503538
commit
ebbe5e39ed
3 changed files with 27 additions and 17 deletions
|
|
@ -953,8 +953,8 @@ begin
|
|||
declare a char(16);
|
||||
declare b,c int;
|
||||
|
||||
fetch c1 into a, b;
|
||||
fetch c2 into c;
|
||||
fetch from c1 into a, b;
|
||||
fetch next from c2 into c;
|
||||
if not done then
|
||||
if b < c then
|
||||
insert into test.t3 values (a, b);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue