mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Added SQLSTATE to client/server protocol
bmove_allign -> bmove_align Added OLAP function ROLLUP Split mysql_fix_privilege_tables to a script and a .sql data file Added new (MEMROOT*) functions to avoid calling current_thd() when creating some common objects. Added table_alias_charset, for easier --lower-case-table-name handling Better SQL_MODE handling (Setting complex options also sets sub options) New (faster) assembler string functions for x86
This commit is contained in:
@ -224,7 +224,7 @@ n after commit
|
||||
commit;
|
||||
insert into t1 values (5);
|
||||
insert into t1 values (4);
|
||||
Duplicate entry '4' for key 1
|
||||
ERROR 23000: Duplicate entry '4' for key 1
|
||||
commit;
|
||||
select n, "after commit" from t1;
|
||||
n after commit
|
||||
@ -233,7 +233,7 @@ n after commit
|
||||
set autocommit=1;
|
||||
insert into t1 values (6);
|
||||
insert into t1 values (4);
|
||||
Duplicate entry '4' for key 1
|
||||
ERROR 23000: Duplicate entry '4' for key 1
|
||||
select n from t1;
|
||||
n
|
||||
4
|
||||
@ -263,7 +263,7 @@ drop table t1;
|
||||
CREATE TABLE t1 (id char(8) not null primary key, val int not null) type=innodb;
|
||||
insert into t1 values ('pippo', 12);
|
||||
insert into t1 values ('pippo', 12);
|
||||
Duplicate entry 'pippo' for key 1
|
||||
ERROR 23000: Duplicate entry 'pippo' for key 1
|
||||
delete from t1;
|
||||
delete from t1 where id = 'pippo';
|
||||
select * from t1;
|
||||
@ -427,9 +427,9 @@ UNIQUE ggid (ggid)
|
||||
insert into t1 (ggid,passwd) values ('test1','xxx');
|
||||
insert into t1 (ggid,passwd) values ('test2','yyy');
|
||||
insert into t1 (ggid,passwd) values ('test2','this will fail');
|
||||
Duplicate entry 'test2' for key 2
|
||||
ERROR 23000: Duplicate entry 'test2' for key 2
|
||||
insert into t1 (ggid,id) values ('this will fail',1);
|
||||
Duplicate entry '1' for key 1
|
||||
ERROR 23000: Duplicate entry '1' for key 1
|
||||
select * from t1 where ggid='test1';
|
||||
id ggid email passwd
|
||||
1 test1 xxx
|
||||
@ -442,7 +442,7 @@ id ggid email passwd
|
||||
replace into t1 (ggid,id) values ('this will work',1);
|
||||
replace into t1 (ggid,passwd) values ('test2','this will work');
|
||||
update t1 set id=100,ggid='test2' where id=1;
|
||||
Duplicate entry 'test2' for key 2
|
||||
ERROR 23000: Duplicate entry 'test2' for key 2
|
||||
select * from t1;
|
||||
id ggid email passwd
|
||||
1 this will work
|
||||
@ -753,7 +753,7 @@ create table t1 (id int NOT NULL,id2 int NOT NULL,id3 int NOT NULL,dummy1 char(3
|
||||
insert into t1 values (0,0,0,'ABCDEFGHIJ'),(2,2,2,'BCDEFGHIJK'),(1,1,1,'CDEFGHIJKL');
|
||||
LOCK TABLES t1 WRITE;
|
||||
insert into t1 values (99,1,2,'D'),(1,1,2,'D');
|
||||
Duplicate entry '1-1' for key 1
|
||||
ERROR 23000: Duplicate entry '1-1' for key 1
|
||||
select id from t1;
|
||||
id
|
||||
0
|
||||
@ -771,7 +771,7 @@ insert into t1 values (0,0,0,'ABCDEFGHIJ'),(2,2,2,'BCDEFGHIJK'),(1,1,1,'CDEFGHIJ
|
||||
LOCK TABLES t1 WRITE;
|
||||
begin;
|
||||
insert into t1 values (99,1,2,'D'),(1,1,2,'D');
|
||||
Duplicate entry '1-1' for key 1
|
||||
ERROR 23000: Duplicate entry '1-1' for key 1
|
||||
select id from t1;
|
||||
id
|
||||
0
|
||||
@ -788,7 +788,7 @@ id id3
|
||||
UNLOCK TABLES;
|
||||
DROP TABLE t1;
|
||||
create table t1 (a char(20), unique (a(5))) type=innodb;
|
||||
Incorrect sub part key. The used key part isn't a string, the used length is longer than the key part or the store engine doesn't support unique sub keys
|
||||
ERROR HY000: Incorrect sub part key. The used key part isn't a string, the used length is longer than the key part or the store engine doesn't support unique sub keys
|
||||
create table t1 (a char(20), index (a(5))) type=innodb;
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
@ -851,7 +851,7 @@ set autocommit=0;
|
||||
create table t1 (a int not null) type= innodb;
|
||||
insert into t1 values(1),(2);
|
||||
truncate table t1;
|
||||
Can't execute the given command because you have active locked tables or an active transaction
|
||||
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
|
||||
commit;
|
||||
truncate table t1;
|
||||
select * from t1;
|
||||
|
Reference in New Issue
Block a user