mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
7f5e51b940
remove: * NDB from everywhere * IM from mtr-v1 * packaging/rpm-oel and packaging/rpm-uln * few unused spec files * plug.in file * .bzrignore
69 lines
3.3 KiB
Text
69 lines
3.3 KiB
Text
########################################################
|
|
# WHAT
|
|
# ====
|
|
# This test aims to check that the mysqlbinlog --verbose
|
|
# command can output binlogs in 4 format variants.
|
|
#
|
|
# 1) Updates logged as write_row events
|
|
# Only primary key and updated columns included in the
|
|
# event
|
|
# 2) Updates logged as write_row_events
|
|
# All columns included in the event
|
|
# 3) Updates logged as update_row events
|
|
# Only primary key and updated columns included in the
|
|
# event
|
|
# 4) Updates logged as update_row events
|
|
# All columns included in the event
|
|
########################################################
|
|
|
|
# We require binlog_format_row as we're independent of binlog format
|
|
# and there's no point running the same test 3 times
|
|
-- source include/have_binlog_format_row.inc
|
|
|
|
--disable_query_log
|
|
--let $binlog_file=write-partial-row.binlog
|
|
--exec $MYSQL_BINLOG --verbose suite/binlog/std_data/$binlog_file > $MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql
|
|
create table raw_binlog_rows (txt varchar(1000));
|
|
--eval load data local infile '$MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql' into table raw_binlog_rows columns terminated by '\n';
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql
|
|
--enable_query_log
|
|
--echo Verbose statements from : $binlog_file
|
|
# Output --verbose lines, with extra Windows CR's trimmed
|
|
select replace(txt,'\r', '') as stmt from raw_binlog_rows where txt like '###%';
|
|
drop table raw_binlog_rows;
|
|
|
|
--disable_query_log
|
|
--let $binlog_file=write-full-row.binlog
|
|
--exec $MYSQL_BINLOG --verbose suite/binlog/std_data/$binlog_file > $MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql
|
|
create table raw_binlog_rows (txt varchar(1000));
|
|
--eval load data local infile '$MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql' into table raw_binlog_rows columns terminated by '\n';
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql
|
|
--enable_query_log
|
|
--echo Verbose statements from : $binlog_file
|
|
# Output --verbose lines, with extra Windows CR's trimmed
|
|
select replace(txt,'\r', '') as stmt from raw_binlog_rows where txt like '###%';
|
|
drop table raw_binlog_rows;
|
|
|
|
--disable_query_log
|
|
--let $binlog_file=update-partial-row.binlog
|
|
--exec $MYSQL_BINLOG --verbose suite/binlog/std_data/$binlog_file > $MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql
|
|
create table raw_binlog_rows (txt varchar(1000));
|
|
--eval load data local infile '$MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql' into table raw_binlog_rows columns terminated by '\n';
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql
|
|
--enable_query_log
|
|
--echo Verbose statements from : $binlog_file
|
|
# Output --verbose lines, with extra Windows CR's trimmed
|
|
select replace(txt,'\r', '') as stmt from raw_binlog_rows where txt like '###%';
|
|
drop table raw_binlog_rows;
|
|
|
|
--disable_query_log
|
|
--let $binlog_file=update-full-row.binlog
|
|
--exec $MYSQL_BINLOG --verbose suite/binlog/std_data/$binlog_file > $MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql
|
|
create table raw_binlog_rows (txt varchar(1000));
|
|
--eval load data local infile '$MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql' into table raw_binlog_rows columns terminated by '\n';
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/mysqlbinlog_verbose.sql
|
|
--enable_query_log
|
|
--echo Verbose statements from : $binlog_file
|
|
# Output --verbose lines, with extra Windows CR's trimmed
|
|
select replace(txt,'\r', '') as stmt from raw_binlog_rows where txt like '###%';
|
|
drop table raw_binlog_rows;
|