List:Commits« Previous MessageNext Message »
From:marc.alff Date:June 12 2007 12:08am
Subject:bk commit into 5.1 tree (malff:1.2548)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of marcsql. When marcsql 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-06-11 18:08:51-06:00, malff@weblab.(none) +3 -0
  Resolved merge conflicts

  sql/field.cc@stripped, 2007-06-11 18:08:48-06:00, malff@weblab.(none) +1 -1
    Resolved merge conflicts

  sql/field.h@stripped, 2007-06-11 18:08:48-06:00, malff@weblab.(none) +1 -1
    Resolved merge conflicts

  sql/sql_lex.h@stripped, 2007-06-11 18:08:48-06:00, malff@weblab.(none) +27 -10
    Resolved merge conflicts

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	malff
# Host:	weblab.(none)
# Root:	/home/marcsql/TREE/mysql-5.1-rt-merge

--- 1.394/sql/field.cc	2007-06-11 18:08:58 -06:00
+++ 1.395/sql/field.cc	2007-06-11 18:08:58 -06:00
@@ -8264,7 +8264,7 @@ Field *Field_bit::new_key_field(MEM_ROOT
 }
 
 
-uint Field_bit::is_equal(create_field *new_field) 
+uint Field_bit::is_equal(Create_field *new_field) 
 {
   return (new_field->sql_type == real_type() &&
           new_field->length == max_display_length());

--- 1.233/sql/field.h	2007-06-11 18:08:58 -06:00
+++ 1.234/sql/field.h	2007-06-11 18:08:58 -06:00
@@ -1563,7 +1563,7 @@ public:
             bit_ptr == ((Field_bit *)field)->bit_ptr &&
             bit_ofs == ((Field_bit *)field)->bit_ofs);
   }
-  uint is_equal(create_field *new_field);
+  uint is_equal(Create_field *new_field);
   void move_field_offset(my_ptrdiff_t ptr_diff)
   {
     Field::move_field_offset(ptr_diff);

--- 1.283/sql/sql_lex.h	2007-06-11 18:08:58 -06:00
+++ 1.284/sql/sql_lex.h	2007-06-11 18:08:58 -06:00
@@ -830,6 +830,13 @@ inline bool st_select_lex_unit::is_union
 #define ALTER_REMOVE_PARTITIONING (1L << 25)
 #define ALTER_FOREIGN_KEY         (1L << 26)
 
+enum enum_alter_table_change_level
+{
+  ALTER_TABLE_METADATA_ONLY= 0,
+  ALTER_TABLE_DATA_CHANGED= 1,
+  ALTER_TABLE_INDEX_CHANGED= 2
+};
+
 /**
   @brief Parsing data for CREATE or ALTER TABLE.
 
@@ -840,21 +847,28 @@ inline bool st_select_lex_unit::is_union
 class Alter_info
 {
 public:
-  List<Alter_drop>            drop_list;
-  List<Alter_column>          alter_list;
-  List<Key>                   key_list;
-  List<Create_field>          create_list;
-  uint                        flags;
-  enum enum_enable_or_disable keys_onoff;
-  enum tablespace_op_type     tablespace_op;
-  List<char>                  partition_names;
-  uint                        no_parts;
+  List<Alter_drop>              drop_list;
+  List<Alter_column>            alter_list;
+  List<Key>                     key_list;
+  List<Create_field>            create_list;
+  uint                          flags;
+  enum enum_enable_or_disable   keys_onoff;
+  enum tablespace_op_type       tablespace_op;
+  List<char>                    partition_names;
+  uint                          no_parts;
+  enum_alter_table_change_level change_level;
+  Create_field                 *datetime_field;
+  bool                          error_if_not_empty;  
+    
 
   Alter_info() :
     flags(0),
     keys_onoff(LEAVE_AS_IS),
     tablespace_op(NO_TABLESPACE_OP),
-    no_parts(0)
+    no_parts(0),
+    change_level(ALTER_TABLE_METADATA_ONLY),
+    datetime_field(NULL),
+    error_if_not_empty(FALSE)
   {}
 
   void reset()
@@ -868,6 +882,9 @@ public:
     tablespace_op= NO_TABLESPACE_OP;
     no_parts= 0;
     partition_names.empty();
+    change_level= ALTER_TABLE_METADATA_ONLY;
+    datetime_field= 0;
+    error_if_not_empty= FALSE;
   }
   /**
     Construct a copy of this object to be used for mysql_alter_table
Thread
bk commit into 5.1 tree (malff:1.2548)marc.alff12 Jun