List:Commits« Previous MessageNext Message »
From:Sergei Golubchik Date:May 13 2009 6:09pm
Subject:bzr commit into mysql-6.0-runtime branch (serg:2763) Bug#43138
View as plain text  
#At file:///usr/home/serg/Abk/mysql/6.0-maria/ based on revid:serg@stripped

 2763 Sergei Golubchik	2009-05-13
      followup for bug#43138
      if delete fails with a permission denied error, we want to show it

    modified:
      sql/sql_class.cc
=== modified file 'sql/sql_class.cc'
--- a/sql/sql_class.cc	2009-05-11 17:58:07 +0000
+++ b/sql/sql_class.cc	2009-05-13 18:08:58 +0000
@@ -410,7 +410,8 @@ bool Drop_table_error_handler::handle_co
                                                 const char *msg,
                                                 MYSQL_ERROR **condition)
 {
-  return sql_errno == EE_DELETE || sql_errno == ER_TRG_NO_DEFINER;
+  return (sql_errno == EE_DELETE && my_errno == ENOENT)
+       || sql_errno == ER_TRG_NO_DEFINER;
 }
 
 


Attachment: [text/bzr-bundle] bzr/serg@mysql.com-20090513180858-8n20oo3kc248e8p6.bundle
Thread
bzr commit into mysql-6.0-runtime branch (serg:2763) Bug#43138Sergei Golubchik13 May