List:Commits« Previous MessageNext Message »
From:holyfoot Date:February 12 2007 10:23pm
Subject:bk commit into 5.0 tree (holyfoot:1.2409)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of hf. When hf 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-02-13 01:23:23+04:00, holyfoot@stripped +1 -0
  Merge mysql.com:/home/hf/work/20691/my50-20691
  into  mysql.com:/home/hf/work/25492/my50-25492
  MERGE: 1.2399.2.1

  sql/item.cc@stripped, 2007-02-13 01:23:20+04:00, holyfoot@stripped +0 -0
    Auto merged
    MERGE: 1.252.1.1

# 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:	holyfoot
# Host:	hfmain.(none)
# Root:	/home/hf/work/25492/my50-25492/RESYNC

--- 1.254/sql/item.cc	2007-02-13 01:23:27 +04:00
+++ 1.255/sql/item.cc	2007-02-13 01:23:27 +04:00
@@ -5495,6 +5495,13 @@ int Item_default_value::save_in_field(Fi
   {
     if (field_arg->flags & NO_DEFAULT_VALUE_FLAG)
     {
+      if (field_arg->reset())
+      {
+        my_message(ER_CANT_CREATE_GEOMETRY_OBJECT,
+                   ER(ER_CANT_CREATE_GEOMETRY_OBJECT), MYF(0));
+        return -1;
+      }
+
       if (context->error_processor == &view_error_processor)
       {
         TABLE_LIST *view= cached_table->top_table();
@@ -5513,7 +5520,6 @@ int Item_default_value::save_in_field(Fi
                             ER(ER_NO_DEFAULT_FOR_FIELD),
                             field_arg->field_name);
       }
-      field_arg->set_default();
       return 1;
     }
     field_arg->set_default();
Thread
bk commit into 5.0 tree (holyfoot:1.2409)holyfoot12 Feb