mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 00:05:33 +02:00
Bug#12204
"CONNECTION is a reserved keyword" Allow connection to be used as an ordinary identifier Tests included. mysql-test/r/keywords.result: test that CONNECTION may be used as ordinary identifier test that CONNECTION may be used in stored procedure. mysql-test/t/keywords.test: test that CONNECTION may be used as ordinary identifier test that CONNECTION may be used in stored procedure. sql/sql_yacc.yy: Set CONNECTION as an unreserved keyword
This commit is contained in:
parent
12ddb5f7c2
commit
6a46b6d6e6
3 changed files with 36 additions and 0 deletions
|
|
@ -16,3 +16,16 @@ select events.binlog from events;
|
|||
binlog
|
||||
1
|
||||
drop table events;
|
||||
create table t1 (connection int, b int);
|
||||
create procedure p1()
|
||||
begin
|
||||
declare connection int;
|
||||
select max(t1.connection) into connection from t1;
|
||||
select concat("max=",connection) 'p1';
|
||||
end|
|
||||
insert into t1 (connection) values (1);
|
||||
call p1();
|
||||
p1
|
||||
max=1
|
||||
drop procedure p1;
|
||||
drop table t1;
|
||||
|
|
|
|||
|
|
@ -19,3 +19,25 @@ select events.binlog from events;
|
|||
drop table events;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
|
||||
#
|
||||
# Bug#12204 - CONNECTION should not be a reserved word
|
||||
#
|
||||
|
||||
create table t1 (connection int, b int);
|
||||
delimiter |;
|
||||
create procedure p1()
|
||||
begin
|
||||
declare connection int;
|
||||
select max(t1.connection) into connection from t1;
|
||||
select concat("max=",connection) 'p1';
|
||||
end|
|
||||
delimiter ;|
|
||||
insert into t1 (connection) values (1);
|
||||
call p1();
|
||||
drop procedure p1;
|
||||
drop table t1;
|
||||
|
||||
|
||||
# End of 5.0 tests
|
||||
|
|
|
|||
|
|
@ -7926,6 +7926,7 @@ keyword_sp:
|
|||
| COMPACT_SYM {}
|
||||
| COMPRESSED_SYM {}
|
||||
| CONCURRENT {}
|
||||
| CONNECTION_SYM {}
|
||||
| CONSISTENT_SYM {}
|
||||
| CUBE_SYM {}
|
||||
| DATA_SYM {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue