UDFの"DROP FUNCTION ..."について

UDFをインストールしていない状態で"DROP FUNCTIONを実行してみる.

MySQL 5.0.18の場合

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.18-max

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> drop function metaphon;
ERROR 1046 (3D000): No database selected
mysql> 

MySQL 4.1.14の場合

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.14-max

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> drop function metaphon;
ERROR 1128 (HY000): Function 'metaphon' is not defined
mysql>

むむむっ?? これはいったい・・・.

  • ERROR 1046 (3D000): No database selected
  • ERROR 1128 (HY000): Function 'metaphon' is not defined

あー,MySQL 5.0からストアドプロシージャが入ったから,"DROP FUNCTION ..."がストアドの削除として解釈されてるのか.ストアドはデータベースに所属するわけだし.じゃあUDFのDROPはどうしたらいいんだ? mysql.funcテーブルからDELETE?