2006-06-01 11:53:27 +02:00
|
|
|
#
|
|
|
|
# Copyright 2006 MySQL. All rights reserved.
|
|
|
|
#
|
|
|
|
# Test to check for the different version of truncating a table.
|
|
|
|
# The statements are "TRUNCATE tbl" and "DELETE FROM tbl". We check
|
|
|
|
# the behaviour of each possible value for BINLOG_FORMAT.
|
|
|
|
#
|
|
|
|
# Author(s): Mats Kindahl
|
|
|
|
|
|
|
|
--source include/master-slave.inc
|
|
|
|
|
|
|
|
let $format = STATEMENT;
|
|
|
|
let $stmt = TRUNCATE TABLE;
|
2006-06-19 09:25:49 +02:00
|
|
|
--source extra/rpl_tests/rpl_truncate_helper.test
|
2006-06-01 11:53:27 +02:00
|
|
|
|
|
|
|
let $format = MIXED;
|
|
|
|
let $stmt = TRUNCATE TABLE;
|
2006-06-19 09:25:49 +02:00
|
|
|
--source extra/rpl_tests/rpl_truncate_helper.test
|
2006-06-01 11:53:27 +02:00
|
|
|
|
|
|
|
let $format = ROW;
|
|
|
|
let $stmt = TRUNCATE TABLE;
|
2006-06-19 09:25:49 +02:00
|
|
|
--source extra/rpl_tests/rpl_truncate_helper.test
|
2006-06-01 11:53:27 +02:00
|
|
|
|
|
|
|
let $format = STATEMENT;
|
|
|
|
let $stmt = DELETE FROM;
|
2006-06-19 09:25:49 +02:00
|
|
|
--source extra/rpl_tests/rpl_truncate_helper.test
|
2006-06-01 11:53:27 +02:00
|
|
|
|
|
|
|
let $format = MIXED;
|
|
|
|
let $stmt = DELETE FROM;
|
2006-06-19 09:25:49 +02:00
|
|
|
--source extra/rpl_tests/rpl_truncate_helper.test
|
2006-06-01 11:53:27 +02:00
|
|
|
|
|
|
|
let $format = ROW;
|
|
|
|
let $stmt = DELETE FROM;
|
2006-06-19 09:25:49 +02:00
|
|
|
--source extra/rpl_tests/rpl_truncate_helper.test
|
2006-06-01 11:53:27 +02:00
|
|
|
|