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:
unknown 2004-11-03 13:49:54 +01:00
commit ebbe5e39ed
3 changed files with 27 additions and 17 deletions

View file

@ -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);