List:Commits« Previous MessageNext Message »
From:Martin Skold Date:March 13 2008 2:27pm
Subject:bk commit into 5.1 tree (mskold:1.2554) BUG#31233
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of mskold.  When mskold 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-03-13 15:27:42+01:00, mskold@stripped +1 -0
  bug#31233 mysql_alter_table() fails to drop UNIQUE KEY: Wrong key read

  sql/sql_table.cc@stripped, 2008-03-13 15:27:31+01:00, mskold@stripped +1 -1
    bug#31233 mysql_alter_table() fails to drop UNIQUE KEY: Wrong key read

diff -Nrup a/sql/sql_table.cc b/sql/sql_table.cc
--- a/sql/sql_table.cc	2008-03-13 08:38:34 +01:00
+++ b/sql/sql_table.cc	2008-03-13 15:27:31 +01:00
@@ -5347,7 +5347,7 @@ compare_tables(THD *thd,
           bool is_not_null;
 
           *alter_flags|= HA_DROP_UNIQUE_INDEX;
-          key_part= new_key->key_part;
+          key_part= table_key->key_part;
           end= key_part + new_key->key_parts;
 
          /*
Thread
bk commit into 5.1 tree (mskold:1.2554) BUG#31233Martin Skold13 Mar