mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge mysql.com:/home/mydev/mysql-5.1
into mysql.com:/home/mydev/mysql-5.1-wl1563-msg mysql-test/r/create_select_tmp.result: Auto merged mysql-test/r/heap_hash.result: Auto merged mysql-test/r/innodb.result: Auto merged mysql-test/r/join_outer.result: Auto merged mysql-test/r/myisam.result: Auto merged mysql-test/r/ndb_index_unique.result: Auto merged mysql-test/r/rpl_loaddata.result: Auto merged mysql-test/r/sp-error.result: Auto merged mysql-test/r/sp.result: Auto merged mysql-test/r/sp_trans.result: Auto merged mysql-test/r/type_bit.result: Auto merged mysql-test/r/type_varchar.result: Auto merged sql/handler.cc: Auto merged sql/share/errmsg.txt: Auto merged mysql-test/r/heap.result: WL#1563 - Modify MySQL to support fast CREATE/DROP INDEX Manual merge mysql-test/r/rpl_err_ignoredtable.result: WL#1563 - Modify MySQL to support fast CREATE/DROP INDEX Manual merge mysql-test/r/rpl_insert_id.result: WL#1563 - Modify MySQL to support fast CREATE/DROP INDEX Manual merge
This commit is contained in:
@ -195,7 +195,7 @@ SELECT * FROM t1 WHERE b<=>NULL;
|
||||
a b
|
||||
99 NULL
|
||||
INSERT INTO t1 VALUES (1,3);
|
||||
ERROR 23000: Duplicate entry '3' for key 1
|
||||
ERROR 23000: Duplicate entry '3' for key 'b'
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
a int default NULL,
|
||||
@ -384,7 +384,7 @@ explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a '
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ref v v 13 const 10 Using where
|
||||
alter table t1 add unique(v);
|
||||
ERROR 23000: Duplicate entry '{ ' for key 1
|
||||
ERROR 23000: Duplicate entry '{ ' for key 'v_2'
|
||||
select concat('*',v,'*',c,'*',t,'*') as qq from t1 where v='a' order by length(concat('*',v,'*',c,'*',t,'*'));
|
||||
qq
|
||||
*a*a*a*
|
||||
@ -536,16 +536,16 @@ drop table t1;
|
||||
create table t1 (a char(10), unique (a));
|
||||
insert into t1 values ('a');
|
||||
insert into t1 values ('a ');
|
||||
ERROR 23000: Duplicate entry 'a' for key 1
|
||||
ERROR 23000: Duplicate entry 'a' for key 'a'
|
||||
alter table t1 modify a varchar(10);
|
||||
insert into t1 values ('a '),('a '),('a '),('a ');
|
||||
ERROR 23000: Duplicate entry 'a ' for key 1
|
||||
ERROR 23000: Duplicate entry 'a ' for key 'a'
|
||||
insert into t1 values ('a ');
|
||||
ERROR 23000: Duplicate entry 'a ' for key 1
|
||||
ERROR 23000: Duplicate entry 'a ' for key 'a'
|
||||
insert into t1 values ('a ');
|
||||
ERROR 23000: Duplicate entry 'a ' for key 1
|
||||
ERROR 23000: Duplicate entry 'a ' for key 'a'
|
||||
insert into t1 values ('a ');
|
||||
ERROR 23000: Duplicate entry 'a ' for key 1
|
||||
ERROR 23000: Duplicate entry 'a ' for key 'a'
|
||||
update t1 set a='a ' where a like 'a ';
|
||||
update t1 set a='a ' where a like 'a ';
|
||||
drop table t1;
|
||||
@ -607,7 +607,7 @@ explain select count(*) from t1 where v between 'a' and 'a ' and v between 'a '
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ref v v 13 const # Using where
|
||||
alter table t1 add unique(v);
|
||||
ERROR 23000: Duplicate entry '{ ' for key 1
|
||||
ERROR 23000: Duplicate entry '{ ' for key 'v_2'
|
||||
select concat('*',v,'*',c,'*',t,'*') as qq from t1 where v='a' order by length(concat('*',v,'*',c,'*',t,'*'));
|
||||
qq
|
||||
*a*a*a*
|
||||
@ -627,16 +627,16 @@ drop table t1;
|
||||
create table t1 (a char(10), unique using btree (a)) engine=heap;
|
||||
insert into t1 values ('a');
|
||||
insert into t1 values ('a ');
|
||||
ERROR 23000: Duplicate entry 'a' for key 1
|
||||
ERROR 23000: Duplicate entry 'a' for key 'a'
|
||||
alter table t1 modify a varchar(10);
|
||||
insert into t1 values ('a '),('a '),('a '),('a ');
|
||||
ERROR 23000: Duplicate entry 'a ' for key 1
|
||||
ERROR 23000: Duplicate entry 'a ' for key 'a'
|
||||
insert into t1 values ('a ');
|
||||
ERROR 23000: Duplicate entry 'a ' for key 1
|
||||
ERROR 23000: Duplicate entry 'a ' for key 'a'
|
||||
insert into t1 values ('a ');
|
||||
ERROR 23000: Duplicate entry 'a ' for key 1
|
||||
ERROR 23000: Duplicate entry 'a ' for key 'a'
|
||||
insert into t1 values ('a ');
|
||||
ERROR 23000: Duplicate entry 'a ' for key 1
|
||||
ERROR 23000: Duplicate entry 'a ' for key 'a'
|
||||
update t1 set a='a ' where a like 'a ';
|
||||
update t1 set a='a ' where a like 'a ';
|
||||
drop table t1;
|
||||
@ -699,7 +699,7 @@ ERROR 42000: Incorrect table definition; there can be only one auto column and i
|
||||
create table t1 (c char(255), primary key(c(90)));
|
||||
insert into t1 values ("abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz");
|
||||
insert into t1 values ("abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz");
|
||||
ERROR 23000: Duplicate entry 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl' for key 1
|
||||
ERROR 23000: Duplicate entry 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl' for key 'PRIMARY'
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (a int, key(a)) engine=heap;
|
||||
insert into t1 values (0);
|
||||
|
Reference in New Issue
Block a user