Commit ca78b386 authored by unknown's avatar unknown

Bug#19939

  AUTHORS and CONTRIBUTORS are not reserved keywords.


mysql-test/r/keywords.result:
  Bug#19939
    Test for bug
mysql-test/t/keywords.test:
  Bug#19939
    Test for bug
parent 98a63cde
...@@ -16,3 +16,19 @@ select events.binlog from events; ...@@ -16,3 +16,19 @@ select events.binlog from events;
binlog binlog
1 1
drop table events; drop table events;
create procedure p1()
begin
declare n int default 2;
authors: while n > 0 do
set n = n -1;
end while authors;
end|
create procedure p2()
begin
declare n int default 2;
contributors: while n > 0 do
set n = n -1;
end while contributors;
end|
drop procedure p1;
drop procedure p2;
...@@ -19,3 +19,27 @@ select events.binlog from events; ...@@ -19,3 +19,27 @@ select events.binlog from events;
drop table events; drop table events;
# End of 4.1 tests # End of 4.1 tests
#
# Bug#19939 "AUTHORS is not a keyword"
#
delimiter |;
create procedure p1()
begin
declare n int default 2;
authors: while n > 0 do
set n = n -1;
end while authors;
end|
create procedure p2()
begin
declare n int default 2;
contributors: while n > 0 do
set n = n -1;
end while contributors;
end|
delimiter ;|
drop procedure p1;
drop procedure p2;
# End of 5.1 tests
...@@ -9339,7 +9339,6 @@ user: ...@@ -9339,7 +9339,6 @@ user:
keyword: keyword:
keyword_sp {} keyword_sp {}
| ASCII_SYM {} | ASCII_SYM {}
| AUTHORS_SYM {}
| BACKUP_SYM {} | BACKUP_SYM {}
| BEGIN_SYM {} | BEGIN_SYM {}
| BYTE_SYM {} | BYTE_SYM {}
...@@ -9397,6 +9396,7 @@ keyword_sp: ...@@ -9397,6 +9396,7 @@ keyword_sp:
| ALGORITHM_SYM {} | ALGORITHM_SYM {}
| ANY_SYM {} | ANY_SYM {}
| AT_SYM {} | AT_SYM {}
| AUTHORS_SYM {}
| AUTO_INC {} | AUTO_INC {}
| AUTOEXTEND_SIZE_SYM {} | AUTOEXTEND_SIZE_SYM {}
| AVG_ROW_LENGTH {} | AVG_ROW_LENGTH {}
...@@ -9422,6 +9422,7 @@ keyword_sp: ...@@ -9422,6 +9422,7 @@ keyword_sp:
| COMPRESSED_SYM {} | COMPRESSED_SYM {}
| CONCURRENT {} | CONCURRENT {}
| CONSISTENT_SYM {} | CONSISTENT_SYM {}
| CONTRIBUTORS_SYM {}
| CUBE_SYM {} | CUBE_SYM {}
| DATA_SYM {} | DATA_SYM {}
| DATAFILE_SYM {} | DATAFILE_SYM {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment