mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
New SET syntax & system variables.
Made a some new buffers thread specific and changeable. Resize of key_buffer. AUTO_COMMIT -> AUTOCOMMIT Fixed mutex bug in DROP DATABASE Fixed bug when using auto_increment as second part of a key where first part could include NULL. Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers. Don't write message to error log when slave reconnects becasue of timeout. Fixed possible update problem when using DELETE/UPDATE on small tables (In some cases we used index even if table scanning would be better) A lot of minior code cleanups
This commit is contained in:
@ -147,3 +147,34 @@ t1 0 e 1 e A 0 NULL NULL BTREE
|
||||
t1 0 b 1 b A NULL NULL NULL YES BTREE
|
||||
t1 1 c 1 c A NULL NULL NULL YES BTREE
|
||||
drop table t1;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (c CHAR(10) NOT NULL,i INT NOT NULL AUTO_INCREMENT,
|
||||
UNIQUE (c,i));
|
||||
INSERT INTO t1 (c) VALUES (NULL),(NULL);
|
||||
SELECT * FROM t1;
|
||||
c i
|
||||
1
|
||||
2
|
||||
INSERT INTO t1 (c) VALUES ('a'),('a');
|
||||
SELECT * FROM t1;
|
||||
c i
|
||||
1
|
||||
2
|
||||
a 1
|
||||
a 2
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (c CHAR(10) NULL, i INT NOT NULL AUTO_INCREMENT,
|
||||
UNIQUE (c,i));
|
||||
INSERT INTO t1 (c) VALUES (NULL),(NULL);
|
||||
SELECT * FROM t1;
|
||||
c i
|
||||
NULL 1
|
||||
NULL 2
|
||||
INSERT INTO t1 (c) VALUES ('a'),('a');
|
||||
SELECT * FROM t1;
|
||||
c i
|
||||
NULL 1
|
||||
NULL 2
|
||||
a 1
|
||||
a 2
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user