List:Commits« Previous MessageNext Message »
From:Justin He Date:September 18 2007 11:16am
Subject:bk commit into 5.1 tree (justin.he:1.2553) BUG#27817
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of justin.he. When justin.he 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-09-18 09:16:41+00:00, justin.he@stripped +1 -0
  Bug#27817 NDB table namess cannot contain the '-' character

  sql/handler.cc@stripped, 2007-09-18 09:16:34+00:00, justin.he@stripped +1 -2
    when discover table from engine, seems frm's filename isnot consistent with
     its original table name, 
    then use build_table_filename() to convert frm's filename 

diff -Nrup a/sql/handler.cc b/sql/handler.cc
--- a/sql/handler.cc	2007-08-13 19:39:23 +00:00
+++ b/sql/handler.cc	2007-09-18 09:16:34 +00:00
@@ -2641,8 +2641,7 @@ int ha_create_table_from_engine(THD* thd
     frmblob and frmlen are set, write the frm to disk
   */
 
-  (void)strxnmov(path,FN_REFLEN-1,mysql_data_home,FN_ROOTDIR,
-                 db,FN_ROOTDIR,name,NullS);
+  build_table_filename(path, sizeof(path), db, name, "", 0);
   // Save the frm file
   error= writefrm(path, frmblob, frmlen);
   my_free(frmblob, MYF(0));

Thread
bk commit into 5.1 tree (justin.he:1.2553) BUG#27817Justin He18 Sep