mariadb/client
Nirbhay Choubey 0c50974573 Bug#11827359 60223: MYSQL_UPGRADE PROBLEM WITH
OPTION SKIP-WRITE-BINLOG

System tables were not getting upgraded when
mysql_upgrade was run with --skip-write-binlog
option. (Same for --write-binlog.) Also, with
this option, mysql_upgrade_info file was not
getting created after the upgrade.

mysql_upgrade makes use of mysql client tool in
order to run upgrade scripts, while doing so it
passes some of the command line options (used to
start mysql_upgrade) directly to mysql client.
The reason behind this bug being, some options
like skip-write-binlog and upgrade-system-tables
were being passed to mysql tool along with other
options, and hence mysql execution failed due
presence of these invalid options.

Fixed this issue by filtering out the above mentioned
options from the list of options that will be passed to
mysql and mysqlcheck tools. However, since --write-binlog
is supported by mysqlcheck, this option would be used
explicitly while running mysqlcheck. (not part of patch,
already there)

Checking the contents of general log after the upgrade
is not doable via an mtr test. So performed manual test.
Added a test to verify the creation of mysql_upgrade_info.
2011-11-15 17:48:42 +05:30
..
client_priv.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
CMakeLists.txt Cherry-picking WL#5710 from mysql-5.5 to mysql-5.5.16-release. 2011-08-15 18:29:38 +04:00
completion_hash.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
completion_hash.h - Added/updated copyright headers 2010-12-28 19:57:23 +01:00
echo.c echo.c: 2007-03-20 18:31:49 +01:00
get_password.c fixes for build failures due to my yesterday's changeset forbidding 2008-02-19 18:45:11 +01:00
my_readline.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
mysql.cc Merge of fix for bug#11758062 from mysql-5.1. 2011-09-28 16:54:15 +05:30
mysql_plugin.c BUG#12929028: mysql_plugin : the --mysqld option is required, but not used 2011-11-11 14:44:51 -05:00
mysql_upgrade.c Bug#11827359 60223: MYSQL_UPGRADE PROBLEM WITH 2011-11-15 17:48:42 +05:30
mysqladmin.cc Manual merge from mysql-5.1. 2011-07-22 11:50:44 +04:00
mysqlbinlog.cc BUG#12695969 2011-07-11 17:19:56 +01:00
mysqlcheck.c Manual merge from mysql-5.1. 2011-07-22 11:50:44 +04:00
mysqldump.c Manual merge from mysql-5.1. 2011-07-22 11:50:44 +04:00
mysqlimport.c Manual merge from mysql-5.1. 2011-07-22 11:50:44 +04:00
mysqlshow.c Manual merge from mysql-5.1. 2011-07-22 11:50:44 +04:00
mysqlslap.c Updated/added copyright headers 2011-07-03 17:47:37 +02:00
mysqltest.cc Bug #13055685 NO WAY TO REPLACE NON-DETERMINISTIC FRAGMENTS IN OUTPUT OF MTR'S ECHO 2011-11-08 15:55:25 +01:00
readline.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_string.cc merge 5.0-security => 5.1-security 2011-07-15 14:08:14 +02:00
sql_string.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00