Fixed BUG#7185: Stored procedure crash if identifier is AVG

This commit is contained in:
pem@mysql.comhem.se 2005-04-12 15:43:24 +02:00
parent e0e281ecb8
commit 9c21006f81
3 changed files with 22 additions and 2 deletions

View File

@ -2844,4 +2844,10 @@ drop procedure bug6900|
drop procedure bug9074| drop procedure bug9074|
drop procedure bug6900_9074| drop procedure bug6900_9074|
drop table t3| drop table t3|
drop procedure if exists avg|
create procedure avg ()
begin
end|
call avg ()|
drop procedure avg|
drop table t1,t2; drop table t1,t2;

View File

@ -3481,6 +3481,20 @@ drop procedure bug6900_9074|
drop table t3| drop table t3|
#
# BUG#7185: Stored procedure crash if identifier is AVG
#
--disable_warnings
drop procedure if exists avg|
--enable_warnings
create procedure avg ()
begin
end|
call avg ()|
drop procedure avg|
# #
# BUG#NNNN: New bug synopsis # BUG#NNNN: New bug synopsis
# #

View File

@ -1328,12 +1328,12 @@ clear_privileges:
; ;
sp_name: sp_name:
IDENT_sys '.' IDENT_sys ident '.' ident
{ {
$$= new sp_name($1, $3); $$= new sp_name($1, $3);
$$->init_qname(YYTHD); $$->init_qname(YYTHD);
} }
| IDENT_sys | ident
{ {
$$= sp_name_current_db_new(YYTHD, $1); $$= sp_name_current_db_new(YYTHD, $1);
} }