List:Commits« Previous MessageNext Message »
From:Martin Skold Date:September 7 2007 8:08am
Subject:bk commit into 5.1 tree (mskold:1.2605)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of marty. When marty 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-07 10:08:09+02:00, mskold@stripped +1 -0
  compare_tables, catch change of NULL behavior

  sql/sql_table.cc@stripped, 2007-09-07 10:06:33+02:00, mskold@stripped +3 -0
    compare_tables, catch change of NULL behavior

diff -Nrup a/sql/sql_table.cc b/sql/sql_table.cc
--- a/sql/sql_table.cc	2007-09-06 16:39:11 +02:00
+++ b/sql/sql_table.cc	2007-09-07 10:06:33 +02:00
@@ -5085,7 +5085,10 @@ compare_tables(THD *thd,
       /* Check that NULL behavior is same for old and new fields */
       if ((new_field->flags & NOT_NULL_FLAG) !=
           (uint) (field->flags & NOT_NULL_FLAG))
+      {
+        *table_changes= IS_EQUAL_NO;
         *alter_flags|= HA_ALTER_COLUMN_NULLABLE;
+      }
     }
 
     /* Clear indexed marker */
Thread
bk commit into 5.1 tree (mskold:1.2605)Martin Skold7 Sep