From: jon
Date: March 24 2006 2:57pm
Subject: svn commit - mysqldoc@docsrva: r1658 - in trunk: refman-5.1 refman-common
List-Archive: http://lists.mysql.com/commits/4124
Message-Id: <200603241457.k2OEv42O010935@docsrva.mysql.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: jstephens
Date: 2006-03-24 15:57:02 +0100 (Fri, 24 Mar 2006)
New Revision: 1658
Log:
Documenting fixes for Partitioning bugs:
Bug #14350, Bug #14367, Bug #15336, Bug #17173, Bug #17290, Bug #17744
New ALTER TABLE option for partitioning: REMOVE PARTITIONING; change in
behaviour for ENGINE option. (Bug #17754)
Modified:
trunk/refman-5.1/partitioning.xml
trunk/refman-5.1/sql-syntax.xml
trunk/refman-common/news-5.1.xml
Modified: trunk/refman-5.1/partitioning.xml
===================================================================
--- trunk/refman-5.1/partitioning.xml 2006-03-23 23:51:58 UTC (rev 1657)
+++ trunk/refman-5.1/partitioning.xml 2006-03-24 14:57:02 UTC (rev 1658)
@@ -2384,6 +2384,16 @@
the table and re-creating it using CREATE TABLE trb3
PARTITION BY KEY(id) PARTITIONS 2;.
+
+
+ Important: In MySQL 5.1.7 and earlier
+ MySQL 5.1 releases, ALTER TABLE ... ENGINE = ...
+ removed all partitioning from the affected table. Beginning with MySQL
+ 5.1.8, this statement changes only the storage engine used by the table,
+ and leaves the table's partitioning scheme intact. As of MySQL 5.1.8, use
+ ALTER TABLE ... REMOVE PARTITIONING to remove a table's
+ partitioning. See .
+
Modified: trunk/refman-5.1/sql-syntax.xml
===================================================================
--- trunk/refman-5.1/sql-syntax.xml 2006-03-23 23:51:58 UTC (rev 1657)
+++ trunk/refman-5.1/sql-syntax.xml 2006-03-24 14:57:02 UTC (rev 1658)
@@ -215,6 +215,7 @@
| OPTIMIZE PARTITION partition_names
| REBUILD PARTITION partition_names
| REPAIR PARTITION partition_names
+ | REMOVE PARTITIONING
@@ -997,6 +998,25 @@
.
+
+
+
+ REMOVE PARTITIONING was introduced in MySQL 5.1.8
+ for the purpose of removing a table's partitioning without otherwise
+ affecting the table or its data. (Previously. this was done using the
+ ENGINE option.) This option can be combined with
+ other ALTER TABLE options such as those used to
+ add, drop, or rename drop columns or indexes.
+
+
+
+ In MySQL 5.1.7 and earlier, using the ENGINE
+ option with ALTER TABLE caused any partitioning
+ that a table might have had to be removed. Beginning with MySQL
+ 5.1.8, this option merely changes the storage engine used by the
+ table and no longer affects partitioning in any way.
+
+
Modified: trunk/refman-common/news-5.1.xml
===================================================================
--- trunk/refman-common/news-5.1.xml 2006-03-23 23:51:58 UTC (rev 1657)
+++ trunk/refman-common/news-5.1.xml 2006-03-24 14:57:02 UTC (rev 1658)
@@ -214,6 +214,28 @@
. (Bug #15447)
+
+
+
+ Incompatible Change: The semantics of
+ ALTER TABLE t
+ ENGINE=X; for partitioned
+ tables is changed, and now means that the storage engine used for
+ table t is changed to
+ X.
+
+
+
+ The previous statement formerly (prior to MySQL 5.1.8) meant that all
+ partitioning was removed from the table. In order to remove the
+ partitioning of a table, the syntax ALTER TABLE
+ t REMOVE PARTITIONING; is
+ introduced. The REMOVE PARTITIONING option can be
+ used in combination with existing ALTER TABLE
+ options such as those employed for adding or dropping columns or
+ indexes. (Bug #17754)
+
+
@@ -437,7 +459,7 @@
- Client API will now attempt reconnect on TCP/IP if the
+ The client API will now attempt to reconnect on TCP/IP if the
reconnect flag is set, as is the case with
sockets. (Bug #2845)
@@ -453,6 +475,52 @@
+ Using triggers with partitioned InnoDB tables led to incorrect
+ results. (Bug #17744)
+
+
+
+
+
+ Calling CREATE TABLE or ALTER
+ TABLE twice on a partitioned table in a stored procedure
+ or a prepared statement resulted in errors and sometimes server
+ crashes. (Bug #17290)
+
+
+
+
+
+ A problem with NULLs and interval mapping sometimes
+ caused incorrect results or crashes when trying to use less-than
+ searches on partitioned tables. (Bug #17173)
+
+
+
+
+
+ CREATE TABLE ... PARTITION ... AS SELECT ... would
+ cause the server to crash. (Bug #15336)
+
+
+
+
+
+ Creating a partition which depends on an expression containing a
+ column using the UTF8 character set would cause the server to crash.
+ (Bug #14367)
+
+
+
+
+
+ Invoking more than once a prepared statement that creates a
+ partitioned table would crash the server. (Bug #14350)
+
+
+
+
+
NDB Cluster: A SELECT ... ORDER
BY query on an explicitly partitioned Cluster table with
no explicit indexes would crash the server. (Bug #17899)