List:Commits« Previous MessageNext Message »
From:Joerg Bruehe Date:April 20 2007 11:59am
Subject:bk commit into 5.1 tree (joerg:1.2599)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of joerg. When joerg 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-04-20 11:58:56+02:00, joerg@debian.(none) +3 -0
  Merge debian.(none):/M51/mysql-5.1
  into  debian.(none):/M51/push-5.1
  MERGE: 1.2589.1.1

  sql/ha_ndbcluster.cc@stripped, 2007-04-20 11:54:45+02:00, joerg@debian.(none) +0 -0
    Auto merged
    MERGE: 1.441.1.4

  sql/mysqld.cc@stripped, 2007-04-20 11:57:52+02:00, joerg@debian.(none) +0 -1
    Merge conflict - main tree has precedence.
    MERGE: 1.621.1.10

  sql/sql_delete.cc@stripped, 2007-04-20 11:54:46+02:00, joerg@debian.(none) +0 -0
    Auto merged
    MERGE: 1.212.1.4

# 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:	joerg
# Host:	debian.(none)
# Root:	/M51/push-5.1/RESYNC

--- 1.216/sql/sql_delete.cc	2007-04-17 15:45:28 +02:00
+++ 1.217/sql/sql_delete.cc	2007-04-20 11:54:46 +02:00
@@ -394,8 +394,6 @@
 {
   Item *fake_conds= 0;
   SELECT_LEX *select_lex= &thd->lex->select_lex;
-  const char *operation = thd->lex->sql_command == SQLCOM_TRUNCATE ?
-                          "TRUNCATE" : "DELETE";
   DBUG_ENTER("mysql_prepare_delete");
   List<Item> all_fields;
 
@@ -410,14 +408,14 @@
     DBUG_RETURN(TRUE);
   if (!table_list->updatable || check_key_in_view(thd, table_list))
   {
-    my_error(ER_NON_UPDATABLE_TABLE, MYF(0), table_list->alias, operation);
+    my_error(ER_NON_UPDATABLE_TABLE, MYF(0), table_list->alias, "DELETE");
     DBUG_RETURN(TRUE);
   }
   {
     TABLE_LIST *duplicate;
     if ((duplicate= unique_table(thd, table_list, table_list->next_global, 0)))
     {
-      update_non_unique_table_error(table_list, operation, duplicate);
+      update_non_unique_table_error(table_list, "DELETE", duplicate);
       DBUG_RETURN(TRUE);
     }
   }
@@ -935,8 +933,7 @@
   if (!dont_send_ok)
   {
     enum legacy_db_type table_type;
-    if (mysql_frm_type(thd, path, &table_type) == FRMTYPE_VIEW)
-      goto trunc_by_del;
+    mysql_frm_type(thd, path, &table_type);
     if (table_type == DB_TYPE_UNKNOWN)
     {
       my_error(ER_NO_SUCH_TABLE, MYF(0),

--- 1.445/sql/ha_ndbcluster.cc	2007-04-17 15:45:28 +02:00
+++ 1.446/sql/ha_ndbcluster.cc	2007-04-20 11:54:45 +02:00
@@ -737,8 +737,8 @@
         DBUG_DUMP("value", (char*)&bits, pack_len);
 #ifdef WORDS_BIGENDIAN
         /* store lsw first */
-        bits = ((bits >> 32) & 0x00000000FFFFFFFF)
-          |    ((bits << 32) & 0xFFFFFFFF00000000);
+        bits = ((bits >> 32) & 0x00000000FFFFFFFFLL)
+          |    ((bits << 32) & 0xFFFFFFFF00000000LL);
 #endif
         DBUG_RETURN(ndb_op->setValue(fieldnr, (char*)&bits) != 0);
       }
@@ -3202,10 +3202,10 @@
             /* lsw is stored first */
             Uint32 *buf= (Uint32 *)(*value).rec->aRef();
             field_bit->Field_bit::store((((longlong)*buf)
-                                         & 0x000000000FFFFFFFF)
+                                         & 0x000000000FFFFFFFFLL)
                                         |
                                         ((((longlong)*(buf+1)) << 32)
-                                         & 0xFFFFFFFF00000000),
+                                         & 0xFFFFFFFF00000000LL),
                                         TRUE);
 #else
             field_bit->Field_bit::store((longlong)
Thread
bk commit into 5.1 tree (joerg:1.2599)Joerg Bruehe20 Apr