List:Commits« Previous MessageNext Message »
From:Chuck Bell Date:May 14 2008 1:31pm
Subject:bk commit into 6.0 tree (cbell:1.2614) BUG#33355
View as plain text  
X-CSetKey: <cbell/Chuck@mysql_cab_desk.|ChangeSet|20080514132947|05263>
X-Bug: 33355

Below is the list of changes that have just been committed into a local
6.0 repository of cbell.  When cbell does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-05-14 09:29:47-04:00, cbell@mysql_cab_desk. +1 -0
  BUG#33355 : Backup: hang if database is mysql
  
  Corrects issue found concerning case sensitive platforms. On case 
  sensitive platforms it was not possible to backup or restore a
  database with the name 'MYSQL' (or any other case variant) because the
  code was doing a case insensitive compare.
  
  This patch allows the use of case variant names like 'MYSQL' as a
  database for systems that have case sensitive identifiers.

  sql/si_objects.cc@stripped, 2008-05-14 09:29:44-04:00, cbell@mysql_cab_desk.
+4 -5
    BUG#33355 : Backup: hang if database is mysql
    
    Changes string compare to allow for case distinction.

diff -Nrup a/sql/si_objects.cc b/sql/si_objects.cc
--- a/sql/si_objects.cc	2008-04-29 10:22:40 -04:00
+++ b/sql/si_objects.cc	2008-05-14 09:29:44 -04:00
@@ -1573,8 +1573,7 @@ bool DatabaseObj::do_serialize(THD *thd,
   DBUG_PRINT("DatabaseObj::serialize", ("name: %s", m_db_name.c_ptr()));
 
   if ((m_db_name == String (INFORMATION_SCHEMA_NAME.str,
system_charset_info))
-      ||
-      (my_strcasecmp(system_charset_info, m_db_name.c_ptr(), "mysql") ==
0))
+      || is_internal_db_name(&m_db_name))
   {
     DBUG_PRINT("backup",(" Skipping internal database %s",
m_db_name.c_ptr()));
     DBUG_RETURN(TRUE);
@@ -2674,9 +2673,9 @@ Obj *materialize_tablespace(const String
 bool is_internal_db_name(const String *db_name)
 {
   return
-    my_strcasecmp(system_charset_info,
-                  ((String *) db_name)->c_ptr_safe(),
-                  "mysql") == 0 ||
+    my_strcasecmp(lower_case_table_names ? system_charset_info :
+                  &my_charset_bin, ((String *) db_name)->c_ptr_safe(),
+                  MYSQL_SCHEMA_NAME.str) == 0 ||
     my_strcasecmp(system_charset_info,
                   ((String *) db_name)->c_ptr_safe(),
                   "information_schema") == 0 ||

Thread
bk commit into 6.0 tree (cbell:1.2614) BUG#33355Chuck Bell14 May
RE: bk commit into 6.0 tree (cbell:1.2614) BUG#33355Chuck Bell14 May