Skip to content

Commit

Permalink
MDEV-35204 mysqlbinlog --verbose fails on row events with vector type
Browse files Browse the repository at this point in the history
test case
  • Loading branch information
vuvova committed Oct 19, 2024
1 parent 8f2be85 commit 4dfa605
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
43 changes: 43 additions & 0 deletions mysql-test/suite/rpl/r/vector.result
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,47 @@ pk vec_totext(a)
1 [0]
connection master;
drop table t;
#
# MDEV-35204 mysqlbinlog --verbose fails on row events with vector type
#
flush binary logs;
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
/*!40019 SET @@session.max_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
ROLLBACK/*!*/;
/*M!100101 SET @@session.skip_parallel_replication=0*//*!*/;
/*M!100001 SET @@session.gtid_domain_id=0*//*!*/;
/*M!100001 SET @@session.server_id=1*//*!*/;
/*M!100001 SET @@session.gtid_seq_no=1*//*!*/;
use `test`/*!*/;
SET @@session.pseudo_thread_id=8/*!*/;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1, @@session.sql_if_exists=0, @@session.explicit_defaults_for_timestamp=1, @@session.system_versioning_insert_history=0/*!*/;
SET @@session.sql_mode=1411383296/*!*/;
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=latin1,@@session.collation_connection=8,@@session.collation_server=2304/*!*/;
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
create table t (pk int primary key, a vector(1) not null)
/*!*/;
/*M!100001 SET @@session.gtid_seq_no=2*//*!*/;
START TRANSACTION
/*!*/;
#Q> insert into t values (1, 0x00000000)
### INSERT INTO `test`.`t`
### SET
### @1=1
### @2='\x00\x00\x00\x00'
# Number of rows: 1
COMMIT
/*!*/;
/*M!100001 SET @@session.gtid_seq_no=3*//*!*/;
DROP TABLE `t` /* generated by server */
/*!*/;
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
include/rpl_end.inc
8 changes: 8 additions & 0 deletions mysql-test/suite/rpl/t/vector.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ select pk, vec_totext(a) from t;
--connection master
drop table t;

--echo #
--echo # MDEV-35204 mysqlbinlog --verbose fails on row events with vector type
--echo #
flush binary logs;
--let $datadir= `select @@datadir`
--replace_regex /#\d.*\n// /SET TIMESTAMP=\d+.*\n//
--exec $MYSQL_BINLOG --verbose --base64-output=never --skip-print-row-event-positions $datadir/master-bin.000001

--source include/rpl_end.inc

0 comments on commit 4dfa605

Please sign in to comment.