List:Commits« Previous MessageNext Message »
From:holyfoot Date:April 4 2007 9:05am
Subject:bk commit into 5.1 tree (holyfoot:1.2555)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 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-04-04 14:05:45+05:00, holyfoot@hfmain.(none) +1 -0
  Merge mysql.com:/home/hf/work/24633/my51-24633
  into  mysql.com:/home/hf/work/my_mrg/my51-my_mrg
  MERGE: 1.2472.2.2

  sql/partition_info.cc@stripped, 2007-04-04 14:05:42+05:00, holyfoot@hfmain.(none) +0 -0
    Auto merged
    MERGE: 1.34.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/my_mrg/my51-my_mrg/RESYNC

--- 1.35/sql/partition_info.cc	2007-04-04 14:05:50 +05:00
+++ 1.36/sql/partition_info.cc	2007-04-04 14:05:50 +05:00
@@ -851,15 +851,27 @@ void partition_info::print_no_partition_
 {
   char buf[100];
   char *buf_ptr= (char*)&buf;
-  my_bitmap_map *old_map= dbug_tmp_use_all_columns(table, table->read_set);
+  TABLE_LIST table_list;
 
-  if (part_expr->null_value)
-    buf_ptr= (char*)"NULL";
+  bzero(&table_list, sizeof(table_list));
+  table_list.db= table->s->db.str;
+  table_list.table_name= table->s->table_name.str;
+
+  if (check_single_table_access(current_thd,
+                                SELECT_ACL, &table_list, TRUE))
+    my_message(ER_NO_PARTITION_FOR_GIVEN_VALUE,
+               ER(ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT), MYF(0));
   else
-    longlong2str(err_value, buf,
-                 part_expr->unsigned_flag ? 10 : -10);
-  my_error(ER_NO_PARTITION_FOR_GIVEN_VALUE, MYF(0), buf_ptr);
-  dbug_tmp_restore_column_map(table->read_set, old_map);
+  {
+    my_bitmap_map *old_map= dbug_tmp_use_all_columns(table, table->read_set);
+    if (part_expr->null_value)
+      buf_ptr= (char*)"NULL";
+    else
+      longlong2str(err_value, buf,
+                   part_expr->unsigned_flag ? 10 : -10);
+    my_error(ER_NO_PARTITION_FOR_GIVEN_VALUE, MYF(0), buf_ptr);
+    dbug_tmp_restore_column_map(table->read_set, old_map);
+  }
 }
 /*
   Set up buffers and arrays for fields requiring preparation
Thread
bk commit into 5.1 tree (holyfoot:1.2555)holyfoot4 Apr