1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

merge into an updated 5.1-bugteam.

This commit is contained in:
Mattias Jonsson
2009-02-20 11:21:45 +01:00
37 changed files with 651 additions and 602 deletions

View File

@@ -16,6 +16,14 @@ SET @old_general_log= @@global.general_log;
drop table if exists t1, t2;
--enable_warnings
#
# Bug#36001: Partitions: spelling and using some error messages
#
--error ER_FOREIGN_KEY_ON_PARTITIONED
CREATE TABLE t1 (a INT, FOREIGN KEY (a) REFERENCES t0 (a))
ENGINE=MyISAM
PARTITION BY HASH (a);
#
# Bug#40954: Crash if range search and order by.
#

View File

@@ -1,5 +1,5 @@
#
# Simple test for the erroneos create statements using the
# Simple test for the erroneos statements using the
# partition storage engine
#
-- source include/have_partition.inc
@@ -7,6 +7,19 @@
--disable_warnings
drop table if exists t1;
--enable_warnings
#
# Bug#38719: Partitioning returns a different error code for a
# duplicate key error
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a));
-- error ER_DUP_ENTRY
INSERT INTO t1 VALUES (1),(1);
DROP TABLE t1;
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a))
PARTITION BY KEY (a) PARTITIONS 2;
-- error ER_DUP_ENTRY
INSERT INTO t1 VALUES (1),(1);
DROP TABLE t1;
#
# Bug#31931: Mix of handlers error message