List:General Discussion« Previous MessageNext Message »
From:Gleb Paharenko Date:June 30 2005 1:07pm
Subject:Re: drop trigger?
View as plain text  
Hello.

You should include table name on which you had created the trigger:

mysql> delimiter $$
mysql> create trigger t1 after insert on ta for each row  begin set
@a=1; end $$
Query OK, 0 rows affected (0.17 sec)

mysql> drop trigger ta.t1$$
Query OK, 0 rows affected (0.00 sec)



Patrik Wallstrom <pawal@stripped> wrote:
> Using 5.0.7-beta the "drop trigger" functions in a very mysterious
> way:
> 
> mysql> use testdb;
> mysql> drop trigger foo;
> ERROR 1064 (42000): You have an error in your SQL syntax; check the
> manual that corresponds to your MySQL server version for the right
> syntax to use near '' at line 1
> mysql> drop trigger testdb.foo;
> ERROR 1146 (42S02): Table 'testdb.testdb' doesn't exist
> 
> Seems like a serious bug to me.
> 


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   Gleb.Paharenko@stripped
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com



Thread
drop trigger?Patrik Wallstrom30 Jun
  • Re: drop trigger?Jeff Smelser30 Jun
  • Re: drop trigger?Jigal van Hemert30 Jun
    • Re: drop trigger?Patrik Wallstrom30 Jun
  • Re: drop trigger?Gleb Paharenko30 Jun