List:Commits« Previous MessageNext Message »
From:antony Date:May 9 2006 10:34pm
Subject:bk commit into 5.0 tree (acurtis:1.2123)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of antony. When antony 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.2123 06/05/09 13:34:31 acurtis@stripped +2 -0
  Merge acurtis@bk-internal:/home/bk/mysql-5.0-engines
  into  xiphis.org:/home/antony/work2/p1-bug10952.1

  sql/sql_table.cc
    1.309 06/05/09 13:34:25 acurtis@stripped +0 -0
    Auto merged

  sql/handler.h
    1.170 06/05/09 13:34:24 acurtis@stripped +0 -0
    Auto merged

# 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:	acurtis
# Host:	localhost.(none)
# Root:	/home/antony/work2/p1-bug10952.1/RESYNC

--- 1.169/sql/handler.h	2006-05-03 04:35:10 -07:00
+++ 1.170/sql/handler.h	2006-05-09 13:34:24 -07:00
@@ -409,6 +409,7 @@ struct show_table_alias_st {
 #define HTON_ALTER_NOT_SUPPORTED     (1 << 1) //Engine does not support alter
 #define HTON_CAN_RECREATE            (1 << 2) //Delete all is used fro truncate
 #define HTON_HIDDEN                  (1 << 3) //Engine does not appear in lists
+#define HTON_ALTER_CANNOT_CREATE     (1 << 4) //Cannot use alter to create
 
 typedef struct st_thd_trans
 {

--- 1.308/sql/sql_table.cc	2006-05-03 21:59:24 -07:00
+++ 1.309/sql/sql_table.cc	2006-05-09 13:34:25 -07:00
@@ -3324,7 +3324,9 @@ bool mysql_alter_table(THD *thd,char *ne
 
   DBUG_PRINT("info", ("old type: %d  new type: %d", old_db_type, new_db_type));
   if (ha_check_storage_engine_flag(old_db_type, HTON_ALTER_NOT_SUPPORTED) ||
-      ha_check_storage_engine_flag(new_db_type, HTON_ALTER_NOT_SUPPORTED))
+      ha_check_storage_engine_flag(new_db_type, HTON_ALTER_NOT_SUPPORTED) ||
+      (old_db_type != new_db_type &&
+       ha_check_storage_engine_flag(new_db_type, HTON_ALTER_CANNOT_CREATE)))
   {
     DBUG_PRINT("info", ("doesn't support alter"));
     my_error(ER_ILLEGAL_HA, MYF(0), table_name);
Thread
bk commit into 5.0 tree (acurtis:1.2123)antony9 May