List:Commits« Previous MessageNext Message »
From:gluh Date:March 6 2006 3:55pm
Subject:bk commit into 5.1 tree (gluh:1.2150) BUG#15336
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of gluh. When gluh 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
  1.2150 06/03/06 18:55:21 gluh@stripped +3 -0
  Fix for bug#15336 Partitions: crash if create table as select
    added HA_EXTRA_WRITE_CACHE case to ha_partition::extra()

  sql/ha_partition.cc
    1.34 06/03/06 18:53:41 gluh@stripped +1 -0
    Fix for bug#15336 Partitions: crash if create table as select
      added HA_EXTRA_WRITE_CACHE case to ha_partition::extra()

  mysql-test/t/partition.test
    1.19 06/03/06 18:53:41 gluh@stripped +6 -0
    Fix for bug#15336 Partitions: crash if create table as select
      test case

  mysql-test/r/partition.result
    1.15 06/03/06 18:53:41 gluh@stripped +2 -0
    Fix for bug#15336 Partitions: crash if create table as select
      test case

# 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:	gluh
# Host:	eagle.intranet.mysql.r18.ru
# Root:	/home/gluh/MySQL/Bugs/5.1.15336

--- 1.14/mysql-test/r/partition.result	Wed Mar  1 12:42:26 2006
+++ 1.15/mysql-test/r/partition.result	Mon Mar  6 18:53:41 2006
@@ -373,4 +373,6 @@ end//
 call p()//
 drop procedure p//
 drop table t1//
+create table t1 (f1 int) partition by hash (f1) as select 1;
+drop table t1;
 End of 5.1 tests

--- 1.18/mysql-test/t/partition.test	Wed Mar  1 12:42:26 2006
+++ 1.19/mysql-test/t/partition.test	Mon Mar  6 18:53:41 2006
@@ -483,4 +483,10 @@ drop procedure p//
 drop table t1//
 delimiter ;//
 
+#
+# Bug#15336 Partitions: crash if create table as select
+#
+create table t1 (f1 int) partition by hash (f1) as select 1;
+drop table t1;
+
 --echo End of 5.1 tests

--- 1.33/sql/ha_partition.cc	Sun Feb 26 01:20:52 2006
+++ 1.34/sql/ha_partition.cc	Mon Mar  6 18:53:41 2006
@@ -4698,6 +4698,7 @@ int ha_partition::extra(enum ha_extra_fu
     break;
   }
   case HA_EXTRA_NO_CACHE:
+  case HA_EXTRA_WRITE_CACHE:
   {
     m_extra_cache= FALSE;
     m_extra_cache_size= 0;
Thread
bk commit into 5.1 tree (gluh:1.2150) BUG#15336gluh6 Mar