Bug #12800 information_schema.routines table shows dropped databases functions
Submitted: 25 Aug 2005 12:21 Modified: 25 Aug 2005 16:30
Reporter: joseph kramart Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.10a OS:Windows (win XP)
Assigned to: CPU Architecture:Any

[25 Aug 2005 12:21] joseph kramart
Description:
until now, everything goes fine.. but today, i want to write a simple function to return a simple value from a table. function is succesfully created and i start to use it. after a while i must add some code in it and i drop the function. when i want to drop the function i get "function SEHIR_DONDER is not exist" error message... i dont know why mysql gives this message.. i simply ignore the message and write new function with the same name.. when i want to compile the function, this time i get "function SEHIR_DONDER is already exists".. i can not create the funciton again.. i spent hours with trying some possibilities to overcome this problem but i can not. i changed the name of the function to smt else.. but take the error again.. after some hours. i decide to drop the database and use my scripts to built again. i drop the database and look at information_schema.routines table.. i saw the functions at there! even if i dropped the database, the functions are still there...
at last i uninstall mysql and clean everything and install again and built the database from my scripts.. i still get this function creating errors...
from the time on, i cannot built functions... 
my func is:
drop FUNCTION IF EXISTS `GMO`.`ODEMETIPI_DONDER`;
CREATE FUNCTION `GMO`.`ODEMETIPI_DONDER`(P_ODEME varchar(50)) RETURNS INT(11)
BEGIN

DECLARE RET_VAL INT(11);

SET RET_VAL = 0;

SELECT S.ODEMETIPI
INTO RET_VAL
FROM ODEMETIPI S
WHERE S.ODEMETIPI = P_ODEME;

RETURN RET_VAL;

End;

thanks for your interest...
joseph

How to repeat:
i drop my database, and look at information_schema.routines table. i saw functions at there. 

i will sent you some screenshots if you want...
[25 Aug 2005 16:30] MySQL Verification Team
I was unable to repeat this issue with 5.0.11 and using the mysql.exe
client.
[25 Aug 2005 20:19] joseph kramart
although you cannot repeat the problem, it still keeps going... 
i finally change the name of the database and save myself from a this problem.
is there a possibility that my database name "GMO" can be a reserved word?