mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge zippy.(none):/home/cmiller/work/mysql/merge/tmp_merge
into zippy.(none):/home/cmiller/work/mysql/merge/mysql-5.1-new Merge by hand. This may not be right. mysql-test/r/innodb.result: Merge by hand. (Yay, vimdiff) mysql-test/t/innodb.test: Merge by hand. (Yay, vimdiff)
This commit is contained in:
@@ -1295,6 +1295,14 @@ insert into t2 (a) select b from t1;
|
|||||||
insert into t1 (a) select b from t2;
|
insert into t1 (a) select b from t2;
|
||||||
insert into t2 (a) select b from t1;
|
insert into t2 (a) select b from t1;
|
||||||
insert into t1 (a) select b from t2;
|
insert into t1 (a) select b from t2;
|
||||||
|
insert into t2 (a) select b from t1;
|
||||||
|
insert into t1 (a) select b from t2;
|
||||||
|
insert into t2 (a) select b from t1;
|
||||||
|
insert into t1 (a) select b from t2;
|
||||||
|
insert into t2 (a) select b from t1;
|
||||||
|
insert into t1 (a) select b from t2;
|
||||||
|
insert into t2 (a) select b from t1;
|
||||||
|
insert into t1 (a) select b from t2;
|
||||||
select count(*) from t1;
|
select count(*) from t1;
|
||||||
count(*)
|
count(*)
|
||||||
623
|
623
|
||||||
@@ -1767,6 +1775,21 @@ select count(*) from t1 where x = 18446744073709551601;
|
|||||||
count(*)
|
count(*)
|
||||||
1
|
1
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
show status like "Innodb_buffer_pool_pages_total";
|
||||||
|
Variable_name Value
|
||||||
|
Innodb_buffer_pool_pages_total 512
|
||||||
|
show status like "Innodb_page_size";
|
||||||
|
Variable_name Value
|
||||||
|
Innodb_page_size 16384
|
||||||
|
show status like "Innodb_rows_deleted";
|
||||||
|
Variable_name Value
|
||||||
|
Innodb_rows_deleted 2070
|
||||||
|
show status like "Innodb_rows_inserted";
|
||||||
|
Variable_name Value
|
||||||
|
Innodb_rows_inserted 31727
|
||||||
|
show status like "Innodb_rows_updated";
|
||||||
|
Variable_name Value
|
||||||
|
Innodb_rows_updated 29530
|
||||||
show status like "Innodb_row_lock_waits";
|
show status like "Innodb_row_lock_waits";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Innodb_row_lock_waits 0
|
Innodb_row_lock_waits 0
|
||||||
@@ -3397,3 +3420,38 @@ commit;
|
|||||||
drop table t1, t2, t3, t5, t6, t8, t9;
|
drop table t1, t2, t3, t5, t6, t8, t9;
|
||||||
CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
|
CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
|
||||||
ERROR HY000: Can't create table 'test.t1' (errno: -1)
|
ERROR HY000: Can't create table 'test.t1' (errno: -1)
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
a BIGINT(20) NOT NULL,
|
||||||
|
PRIMARY KEY (a)
|
||||||
|
) ENGINE=INNODB DEFAULT CHARSET=UTF8;
|
||||||
|
CREATE TABLE t2 (
|
||||||
|
a BIGINT(20) NOT NULL,
|
||||||
|
b VARCHAR(128) NOT NULL,
|
||||||
|
c TEXT NOT NULL,
|
||||||
|
PRIMARY KEY (a,b),
|
||||||
|
KEY idx_t2_b_c (b,c(200)),
|
||||||
|
CONSTRAINT t_fk FOREIGN KEY (a) REFERENCES t1 (a)
|
||||||
|
ON DELETE CASCADE
|
||||||
|
) ENGINE=INNODB DEFAULT CHARSET=UTF8;
|
||||||
|
INSERT INTO t1 VALUES (1);
|
||||||
|
INSERT INTO t2 VALUES (1, 'bar', 'vbar');
|
||||||
|
INSERT INTO t2 VALUES (1, 'BAR2', 'VBAR');
|
||||||
|
INSERT INTO t2 VALUES (1, 'bar_bar', 'bibi');
|
||||||
|
INSERT INTO t2 VALUES (1, 'customer_over', '1');
|
||||||
|
SELECT * FROM t2 WHERE b = 'customer_over';
|
||||||
|
a b c
|
||||||
|
1 customer_over 1
|
||||||
|
SELECT * FROM t2 WHERE BINARY b = 'customer_over';
|
||||||
|
a b c
|
||||||
|
1 customer_over 1
|
||||||
|
SELECT DISTINCT p0.a FROM t2 p0 WHERE p0.b = 'customer_over';
|
||||||
|
a
|
||||||
|
1
|
||||||
|
/* Bang: Empty result set, above was expected: */
|
||||||
|
SELECT DISTINCT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
|
||||||
|
a
|
||||||
|
1
|
||||||
|
SELECT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
|
||||||
|
a
|
||||||
|
1
|
||||||
|
drop table t2, t1;
|
||||||
|
@@ -891,6 +891,14 @@ insert into t2 (a) select b from t1;
|
|||||||
insert into t1 (a) select b from t2;
|
insert into t1 (a) select b from t2;
|
||||||
insert into t2 (a) select b from t1;
|
insert into t2 (a) select b from t1;
|
||||||
insert into t1 (a) select b from t2;
|
insert into t1 (a) select b from t2;
|
||||||
|
insert into t2 (a) select b from t1;
|
||||||
|
insert into t1 (a) select b from t2;
|
||||||
|
insert into t2 (a) select b from t1;
|
||||||
|
insert into t1 (a) select b from t2;
|
||||||
|
insert into t2 (a) select b from t1;
|
||||||
|
insert into t1 (a) select b from t2;
|
||||||
|
insert into t2 (a) select b from t1;
|
||||||
|
insert into t1 (a) select b from t2;
|
||||||
select count(*) from t1;
|
select count(*) from t1;
|
||||||
--replace_column 9 #
|
--replace_column 9 #
|
||||||
explain select * from t1 where c between 1 and 2500;
|
explain select * from t1 where c between 1 and 2500;
|
||||||
@@ -1282,6 +1290,15 @@ select * from t1 where x > -16;
|
|||||||
select count(*) from t1 where x = 18446744073709551601;
|
select count(*) from t1 where x = 18446744073709551601;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
|
||||||
|
# Test for testable InnoDB status variables. This test
|
||||||
|
# uses previous ones(pages_created, rows_deleted, ...).
|
||||||
|
show status like "Innodb_buffer_pool_pages_total";
|
||||||
|
show status like "Innodb_page_size";
|
||||||
|
show status like "Innodb_rows_deleted";
|
||||||
|
show status like "Innodb_rows_inserted";
|
||||||
|
show status like "Innodb_rows_updated";
|
||||||
|
|
||||||
# Test for row locks InnoDB status variables.
|
# Test for row locks InnoDB status variables.
|
||||||
show status like "Innodb_row_lock_waits";
|
show status like "Innodb_row_lock_waits";
|
||||||
show status like "Innodb_row_lock_current_waits";
|
show status like "Innodb_row_lock_current_waits";
|
||||||
@@ -2430,3 +2447,37 @@ drop table t1, t2, t3, t5, t6, t8, t9;
|
|||||||
# bug 18934, "InnoDB crashes when table uses column names like DB_ROW_ID"
|
# bug 18934, "InnoDB crashes when table uses column names like DB_ROW_ID"
|
||||||
--error 1005
|
--error 1005
|
||||||
CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
|
CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #17152: Wrong result with BINARY comparison on aliased column
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
a BIGINT(20) NOT NULL,
|
||||||
|
PRIMARY KEY (a)
|
||||||
|
) ENGINE=INNODB DEFAULT CHARSET=UTF8;
|
||||||
|
|
||||||
|
CREATE TABLE t2 (
|
||||||
|
a BIGINT(20) NOT NULL,
|
||||||
|
b VARCHAR(128) NOT NULL,
|
||||||
|
c TEXT NOT NULL,
|
||||||
|
PRIMARY KEY (a,b),
|
||||||
|
KEY idx_t2_b_c (b,c(200)),
|
||||||
|
CONSTRAINT t_fk FOREIGN KEY (a) REFERENCES t1 (a)
|
||||||
|
ON DELETE CASCADE
|
||||||
|
) ENGINE=INNODB DEFAULT CHARSET=UTF8;
|
||||||
|
|
||||||
|
INSERT INTO t1 VALUES (1);
|
||||||
|
INSERT INTO t2 VALUES (1, 'bar', 'vbar');
|
||||||
|
INSERT INTO t2 VALUES (1, 'BAR2', 'VBAR');
|
||||||
|
INSERT INTO t2 VALUES (1, 'bar_bar', 'bibi');
|
||||||
|
INSERT INTO t2 VALUES (1, 'customer_over', '1');
|
||||||
|
|
||||||
|
SELECT * FROM t2 WHERE b = 'customer_over';
|
||||||
|
SELECT * FROM t2 WHERE BINARY b = 'customer_over';
|
||||||
|
SELECT DISTINCT p0.a FROM t2 p0 WHERE p0.b = 'customer_over';
|
||||||
|
/* Bang: Empty result set, above was expected: */
|
||||||
|
SELECT DISTINCT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
|
||||||
|
SELECT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
|
||||||
|
|
||||||
|
drop table t2, t1;
|
||||||
|
Reference in New Issue
Block a user