polardbxengine/mysql-test/suite/xengine/t/checksum_table_live.test

26 lines
705 B
Plaintext

--source suite/xengine/include/have_xengine.inc
#
# CHECKSUM TABLE statements for live CHECKSUM.
#
--disable_warnings
DROP TABLE IF EXISTS t1,t2;
--enable_warnings
# For most engines CHECKSUM=1 option will be ignored,
# and the results will be different
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=xengine CHECKSUM=1 charset=latin1 collate latin1_bin;
INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b');
CREATE TABLE t2 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=xengine CHECKSUM=1 charset=latin1 collate latin1_bin;
CHECKSUM TABLE t1;
CHECKSUM TABLE t2, t1;
CHECKSUM TABLE t1, t2 QUICK;
CHECKSUM TABLE t1, t2 EXTENDED;
DROP TABLE t1, t2;
--source suite/xengine/include/check_xengine_log_error.inc