33 lines
924 B
Plaintext
33 lines
924 B
Plaintext
--source suite/xengine/include/have_xengine.inc
|
|
|
|
#
|
|
# ANALYZE TABLE statements
|
|
#
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1,t2;
|
|
--enable_warnings
|
|
|
|
CREATE TABLE t1 (pk INT PRIMARY KEY, a INT(11), b CHAR(8)) ENGINE=xengine;
|
|
INSERT INTO t1 VALUES (1,1,'a'),(2,2,'b');
|
|
CREATE TABLE t2 (pk INT PRIMARY KEY, a INT(11), b CHAR(8)) ENGINE=xengine;
|
|
INSERT INTO t1 VALUES (3,3,'c');
|
|
ANALYZE TABLE t1;
|
|
INSERT INTO t2 VALUES (1,4,'d');
|
|
ANALYZE NO_WRITE_TO_BINLOG TABLE t2;
|
|
INSERT INTO t1 VALUES (4,5,'e');
|
|
INSERT INTO t2 VALUES (2,6,'f');
|
|
ANALYZE LOCAL TABLE t1, t2;
|
|
|
|
DROP TABLE t1, t2;
|
|
|
|
--let $create_definition = a $int_indexed_col, $default_index(a)
|
|
CREATE TABLE t1 (pk INT PRIMARY KEY, a INT(11), KEY(a)) ENGINE=xengine;
|
|
INSERT INTO t1 VALUES (1,1),(2,2),(3,4),(4,7);
|
|
ANALYZE TABLE t1;
|
|
INSERT INTO t1 VALUES (5,8),(6,10),(7,11),(8,12);
|
|
ANALYZE TABLE t1;
|
|
DROP TABLE t1;
|
|
|
|
--source suite/xengine/include/check_xengine_log_error.inc
|