From 9008814ef74336f033b3e3542d0ef4be2c3a49cb Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 15 Dec 2005 20:56:14 +0400 Subject: [PATCH] tests fixed as we implement informative error message mysql-test/r/partition_list.result: test result fixed mysql-test/r/partition_range.result: test result fixed mysql-test/t/partition_list.test: test fixed mysql-test/t/partition_range.test: test fixed --- mysql-test/r/partition_list.result | 10 +++++----- mysql-test/r/partition_range.result | 10 +++++----- mysql-test/t/partition_list.test | 10 +++++----- mysql-test/t/partition_range.test | 10 +++++----- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/mysql-test/r/partition_list.result b/mysql-test/r/partition_list.result index 23185e8aabf..21c23fd68ea 100644 --- a/mysql-test/r/partition_list.result +++ b/mysql-test/r/partition_list.result @@ -9,16 +9,16 @@ partitions 2 partition x234 values in (4,7,8)); INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (2,1,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 2 INSERT into t1 VALUES (3,1,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 3 INSERT into t1 VALUES (4,1,1); INSERT into t1 VALUES (5,1,1); INSERT into t1 VALUES (6,1,1); INSERT into t1 VALUES (7,1,1); INSERT into t1 VALUES (8,1,1); INSERT into t1 VALUES (9,1,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 9 INSERT into t1 VALUES (1,2,1); INSERT into t1 VALUES (1,3,1); INSERT into t1 VALUES (1,4,1); @@ -137,7 +137,7 @@ a b c 7 4 1 INSERT into t1 VALUES (6,2,1); INSERT into t1 VALUES (2,2,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 2 drop table t1; CREATE TABLE t1 ( a int not null, @@ -156,7 +156,7 @@ subpartition x22 nodegroup 1) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); INSERT into t1 VALUES (7,1,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 7 UPDATE t1 SET a=5 WHERE a=1; SELECT * from t1; a b c diff --git a/mysql-test/r/partition_range.result b/mysql-test/r/partition_range.result index f8b4f1b054b..072c51cc839 100644 --- a/mysql-test/r/partition_range.result +++ b/mysql-test/r/partition_range.result @@ -94,7 +94,7 @@ INSERT into t1 values (1, 1, 1); INSERT into t1 values (6, 1, 1); INSERT into t1 values (10, 1, 1); INSERT into t1 values (15, 1, 1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 15 select * from t1; a b c 1 1 1 @@ -206,7 +206,7 @@ subpartition x22 engine myisam nodegroup 1) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); INSERT into t1 VALUES (5,1,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 5 SELECT * from t1; a b c 1 1 1 @@ -243,7 +243,7 @@ subpartition x22 tablespace t2 engine myisam) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); INSERT into t1 VALUES (5,1,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 5 SELECT * from t1; a b c 1 1 1 @@ -280,7 +280,7 @@ subpartition x22 tablespace t2) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); INSERT into t1 VALUES (5,1,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 5 SELECT * from t1; a b c 1 1 1 @@ -317,7 +317,7 @@ subpartition x22 engine myisam) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); INSERT into t1 VALUES (5,1,1); -ERROR HY000: Got error 1 from storage engine +ERROR HY000: Table has no partition for value 5 SELECT * from t1; a b c 1 1 1 diff --git a/mysql-test/t/partition_list.test b/mysql-test/t/partition_list.test index cb8d06a11ed..af99321dcb2 100644 --- a/mysql-test/t/partition_list.test +++ b/mysql-test/t/partition_list.test @@ -22,16 +22,16 @@ partitions 2 partition x234 values in (4,7,8)); INSERT into t1 VALUES (1,1,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (2,1,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (3,1,1); INSERT into t1 VALUES (4,1,1); INSERT into t1 VALUES (5,1,1); INSERT into t1 VALUES (6,1,1); INSERT into t1 VALUES (7,1,1); INSERT into t1 VALUES (8,1,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (9,1,1); INSERT into t1 VALUES (1,2,1); INSERT into t1 VALUES (1,3,1); @@ -64,7 +64,7 @@ partitions 2 partition x234 values in (4,7,8)); SELECT * from t1; INSERT into t1 VALUES (6,2,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (2,2,1); drop table t1; @@ -89,7 +89,7 @@ subpartition by hash (a+b) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (7,1,1); UPDATE t1 SET a=5 WHERE a=1; SELECT * from t1; diff --git a/mysql-test/t/partition_range.test b/mysql-test/t/partition_range.test index 08cc841b12e..9a81914ed2d 100644 --- a/mysql-test/t/partition_range.test +++ b/mysql-test/t/partition_range.test @@ -97,7 +97,7 @@ partitions 3 INSERT into t1 values (1, 1, 1); INSERT into t1 values (6, 1, 1); INSERT into t1 values (10, 1, 1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 values (15, 1, 1); select * from t1; @@ -219,7 +219,7 @@ subpartition by hash (a+b) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (5,1,1); SELECT * from t1; @@ -260,7 +260,7 @@ subpartition by hash (a+b) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (5,1,1); SELECT * from t1; @@ -301,7 +301,7 @@ subpartition by hash (a+b) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (5,1,1); SELECT * from t1; @@ -342,7 +342,7 @@ subpartition by hash (a+b) INSERT into t1 VALUES (1,1,1); INSERT into t1 VALUES (4,1,1); ---error 1030 +--error ER_NO_PARTITION_FOR_GIVEN_VALUE INSERT into t1 VALUES (5,1,1); SELECT * from t1;