diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-01 18:15:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-01 18:15:00 +0000 |
commit | a2a2e32c02643a0cec111511220227703fda1cd5 (patch) | |
tree | 69cc2b631234c2a8e026b9cd4d72676c61c594df /mysql-test/suite/binlog/t/binlog_base64_flag.test | |
parent | Releasing progress-linux version 1:10.11.8-1~progress7.99u1. (diff) | |
download | mariadb-a2a2e32c02643a0cec111511220227703fda1cd5.tar.xz mariadb-a2a2e32c02643a0cec111511220227703fda1cd5.zip |
Merging upstream version 1:11.4.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/suite/binlog/t/binlog_base64_flag.test')
-rw-r--r-- | mysql-test/suite/binlog/t/binlog_base64_flag.test | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/mysql-test/suite/binlog/t/binlog_base64_flag.test b/mysql-test/suite/binlog/t/binlog_base64_flag.test index 5311da54..6935f69b 100644 --- a/mysql-test/suite/binlog/t/binlog_base64_flag.test +++ b/mysql-test/suite/binlog/t/binlog_base64_flag.test @@ -2,9 +2,6 @@ # work as expected, and that BINLOG statements with row events fail if # they are not preceded by BINLOG statements with Format description # events. -# -# See also BUG#32407. - # BINLOG statement does not work in embedded mode. source include/not_embedded.inc; @@ -12,23 +9,10 @@ source include/not_embedded.inc; call mtr.add_suppression("BINLOG_BASE64_EVENT: According to the master's version"); call mtr.add_suppression("BINLOG_BASE64_EVENT: Column 1 of table 'test.char128_utf8' cannot be converted"); -disable_warnings; -DROP TABLE IF EXISTS t1; -enable_warnings; -# Test to show BUG#32407. This reads a binlog created with the -# mysql-5.1-telco-6.1 tree, specifically at the tag -# mysql-5.1.15-ndb-6.1.23, and applies it to the database. The test -# should fail before BUG#32407 was fixed and succeed afterwards. ---echo ==== Test BUG#32407 ==== - -# The binlog contains row events equivalent to: -# CREATE TABLE t1 (a int) engine = myisam -# INSERT INTO t1 VALUES (1), (1) -exec $MYSQL_BINLOG suite/binlog/std_data/bug32407.001 | $MYSQL; -# The above line should succeed and t1 should contain two ones +CREATE TABLE t1 (a int); +INSERT INTO t1 VALUES (1), (1); select * from t1; - # Test that a BINLOG statement encoding a row event fails unless a # Format_description_event as been supplied with an earlier BINLOG # statement. @@ -92,14 +76,6 @@ select * from t1; # show "one-shot" feature of binlog_fragment variables SELECT @binlog_fragment_0, @binlog_fragment_1 as 'NULL','NULL'; -# New mysqlbinlog supports --base64-output=never ---echo ==== Test --base64-output=never on a binlog with row events ==== - -# mysqlbinlog should fail ---replace_regex /#[0-9][0-9][0-9][0-9][0-9][0-9] \N*/<#>/ /SET \@\@session.pseudo_thread_id.*/<#>/ -exec $MYSQL_BINLOG --base64-output=never --print-row-count=0 --print-row-event-positions=0 suite/binlog/std_data/bug32407.001; - - # Test that the following fails cleanly: "First, read a # Format_description event which has N event types. Then, read an # event of type M>N" |