List:Commits« Previous MessageNext Message »
From:gluh Date:August 3 2007 9:17am
Subject:bk commit into 5.1 tree (gluh:1.2593)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of gluh. When gluh 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, 2007-08-03 14:17:51+05:00, gluh@stripped +1 -0
  powermacg5 problem fix
  we need a copy of I_S name because the name can be changed in case of lowercase_table_name!=0

  sql/sql_show.cc@stripped, 2007-08-03 14:17:49+05:00, gluh@stripped +7 -3
    powermacg5 problem fix
    we need a copy of I_S name because the name can be changed in case of lowercase_table_name!=0

diff -Nrup a/sql/sql_show.cc b/sql/sql_show.cc
--- a/sql/sql_show.cc	2007-08-03 03:14:03 +05:00
+++ b/sql/sql_show.cc	2007-08-03 14:17:49 +05:00
@@ -2535,6 +2535,10 @@ int make_db_list(THD *thd, List<LEX_STRI
                  LOOKUP_FIELD_VALUES *lookup_field_vals,
                  bool *with_i_schema)
 {
+  LEX_STRING *i_s_name_copy= 0;
+  i_s_name_copy= thd->make_lex_string(i_s_name_copy,
+                                      INFORMATION_SCHEMA_NAME.str,
+                                      INFORMATION_SCHEMA_NAME.length, TRUE);
   *with_i_schema= 0;
   if (lookup_field_vals->wild_db_value)
   {
@@ -2549,7 +2553,7 @@ int make_db_list(THD *thd, List<LEX_STRI
                            lookup_field_vals->db_value.str))
     {
       *with_i_schema= 1;
-      if (files->push_back(&INFORMATION_SCHEMA_NAME))
+      if (files->push_back(i_s_name_copy))
         return 1;
     }
     return (find_files(thd, files, NullS, mysql_data_home,
@@ -2567,7 +2571,7 @@ int make_db_list(THD *thd, List<LEX_STRI
                        lookup_field_vals->db_value.str))
     {
       *with_i_schema= 1;
-      if (files->push_back(&INFORMATION_SCHEMA_NAME))
+      if (files->push_back(i_s_name_copy))
         return 1;
       return 0;
     }
@@ -2580,7 +2584,7 @@ int make_db_list(THD *thd, List<LEX_STRI
     Create list of existing databases. It is used in case
     of select from information schema table
   */
-  if (files->push_back(&INFORMATION_SCHEMA_NAME))
+  if (files->push_back(i_s_name_copy))
     return 1;
   *with_i_schema= 1;
   return (find_files(thd, files, NullS,
Thread
bk commit into 5.1 tree (gluh:1.2593)gluh3 Aug