From 06eaf7232e9a920468c0f8d74dcf2fe8b555501c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 14:24:36 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- .../suite/storage_engine/optimize_table.result | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 mysql-test/suite/storage_engine/optimize_table.result (limited to 'mysql-test/suite/storage_engine/optimize_table.result') diff --git a/mysql-test/suite/storage_engine/optimize_table.result b/mysql-test/suite/storage_engine/optimize_table.result new file mode 100644 index 00000000..4bb0bd29 --- /dev/null +++ b/mysql-test/suite/storage_engine/optimize_table.result @@ -0,0 +1,29 @@ +DROP TABLE IF EXISTS t1,t2; +CREATE TABLE t1 (a , b ) ENGINE= ; +INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b'); +CREATE TABLE t2 (a , b ) ENGINE= ; +INSERT INTO t1 (a,b) VALUES (3,'c'),(4,'d'); +OPTIMIZE TABLE t1; +Table Op Msg_type Msg_text +test.t1 optimize status OK +INSERT INTO t2 (a,b) VALUES (4,'d'); +OPTIMIZE NO_WRITE_TO_BINLOG TABLE t2; +Table Op Msg_type Msg_text +test.t2 optimize status OK +INSERT INTO t2 (a,b) VALUES (5,'e'); +INSERT INTO t1 (a,b) VALUES (6,'f'); +OPTIMIZE LOCAL TABLE t1, t2; +Table Op Msg_type Msg_text +test.t1 optimize status OK +test.t2 optimize status OK +OPTIMIZE TABLE t1, t2; +Table Op Msg_type Msg_text +test.t1 optimize status Table is already up to date +test.t2 optimize status Table is already up to date +DROP TABLE t1, t2; +CREATE TABLE t1 (a , b , (a)) ENGINE= ; +INSERT INTO t1 (a,b) VALUES (1,'a'),(100,'b'),(2,'c'),(3,'d'); +OPTIMIZE TABLE t1; +Table Op Msg_type Msg_text +test.t1 optimize status OK +DROP TABLE t1; -- cgit v1.2.3