diff options
author | Brandon Nesterenko <brandon.nesterenko@mariadb.com> | 2021-05-12 11:46:58 -0600 |
---|---|---|
committer | Brandon Nesterenko <brandon.nesterenko@mariadb.com> | 2021-05-17 14:38:46 -0600 |
commit | 81402c131875c5fc2c3c4078bc12770304a48861 (patch) | |
tree | dc86d8c504f5250fac014530263273388699ad72 /mysql-test/main/mysqlbinlog.result | |
parent | 740917620a5c1443472dbc62b357b456177f78e1 (diff) | |
download | mariadb-git-81402c131875c5fc2c3c4078bc12770304a48861.tar.gz |
MDEV-25222: mysqlbinlog --base64-output wrong option default drops BINLOG from output
Problem:
=======
The ALWAYS option of the mariadb-binlog --base64-output flag
formats its output incorrectly. This option is deprecated, and
MySQL 8.0 has removed it entirely.
Solution:
========
Adhere to MySQL and remove this option from MariaDB.
Behavioral Changes:
==================
Use Case: ./mariadb-binlog --base64-output
Previous Behavior: Sets base64-output mode to always
New Behavior: Error message indicating incomplete argument
Use Case: ./mariadb-binlog --base64-output=always
Previous Behavior: Sets base64-output mode to always
New Behavior: Error message indicating invalid argument value
Reviewed By:
==========
Andrei Elkin: <andrei.elkin@mariadb.com>
Diffstat (limited to 'mysql-test/main/mysqlbinlog.result')
-rw-r--r-- | mysql-test/main/mysqlbinlog.result | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/mysql-test/main/mysqlbinlog.result b/mysql-test/main/mysqlbinlog.result index 8e12ecdf8c1..83cc2ef510a 100644 --- a/mysql-test/main/mysqlbinlog.result +++ b/mysql-test/main/mysqlbinlog.result @@ -878,8 +878,19 @@ ROLLBACK /* added by mysqlbinlog */; /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/; End of 5.0 tests End of 5.1 tests -# Expect deprecation warning. -# Expect deprecation warning again. +# +# Expect error for invalid --base64-output argument value. +# MYSQL_BINLOG std_data/master-bin.000001 --base64-output=always 2>&1 +Unknown option to base64-output: always +Alternatives are: 'NEVER','AUTO','UNSPEC','DECODE-ROWS' +# +# Expect error for incomplete --base64-output argument. +# MYSQL_BINLOG std_data/master-bin.000001 --base64-output 2>&1 +mysqlbinlog: option '--base64-output' requires an argument +# +# Ensure --base64-output=auto outputs the same result as unspecified +# MYSQL_BINLOG -v MYSQLD_DATADIR/master-bin.000001 > MYSQLTEST_VARDIR/tmp/mysqlbinlog_nob64spec.out +# MYSQL_BINLOG --base64-output=auto -v MYSQLD_DATADIR/master-bin.000001 > MYSQLTEST_VARDIR/tmp/mysqlbinlog_b64auto.out RESET MASTER; CREATE DATABASE test1; USE test1; |