MySQL Forums
Forum List  »  Triggers

Re: CREATE TRIGGER crashes mysqld
Posted by: Bob Field
Date: January 15, 2006 03:18PM

The following modification seems to take care of it:

root@bobdesk:/usr/Data/mysql/mysql-5.1.4/source/mysql-5.1.4-alpha/sql# cat patch
--- sql_trigger.ccbad 2005-12-20 18:31:54.000000000 -0700
+++ sql_trigger.cc 2006-01-15 14:08:36.000000000 -0700
@@ -306,6 +306,14 @@
struct st_trigname trigname;


+ /* Database name must be specified by default or explicitly in the */
+ /* CREATE TRIGGER statement. */
+ if (lex->spname->m_db.str == 0 && thd->db == 0)
+ {
+ my_error(ER_NO_DB_ERROR, MYF(0));
+ return 1;
+ }
+
/* Trigger must be in the same schema as target table. */
if (my_strcasecmp(table_alias_charset, table->s->db.str,
lex->spname->m_db.str ? lex->spname->m_db.str :

Options: ReplyQuote


Subject
Views
Written By
Posted
2852
January 14, 2006 09:39PM
2010
January 15, 2006 02:56PM
Re: CREATE TRIGGER crashes mysqld
1963
January 15, 2006 03:18PM
1802
January 16, 2006 08:20AM
1898
January 16, 2006 03:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.