mariadb/scripts
unknown 1336b0eb13 Fix for BUG#30029: mysql_upgrade fails for 5.0 -> 5.1.21,
5.1.20 -> 5.1.21 upgrades.

We generate mysql_fix_privilege.sql file, which contains SQL
statements required to upgrade the system database. This script
is generated by concatenation of mysql_system_tables.sql and
mysql_system_tables_fix.sql.

The problem was that
  - in order to create general_log and slow_log tables we use
    stored programs in mysql_system_tables.sql;
  - we upgrade mysql.proc table in mysql_system_tables_fix.sql;

So, if mysql.proc table needs to be upgraded, stored procedures
can not be used in mysql_system_tables.sql.

In other words, in mysql_system_tables.sql stored programs must
not be used because they may be unavailable at this point.

The fix is to use dynamic SQL instead of stored programs.

There is no test case for this bug because our test suite
is not suitable for such test cases. system_mysql_db_fix* test
cases play with the database "test". Here we need to modify
the system database and we can not do that in the test suite.


scripts/mysql_system_tables.sql:
  Use dynamic SQL instead of stored programs.
2007-07-26 20:05:01 +04:00
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt Minor fix. 2007-05-02 12:41:36 -04:00
comp_sql.c Add "name of struct" as first arg to comp_sql 2007-04-23 14:01:48 +02:00
fill_help_tables.sql More changes to reflect the removal of manual.texi from the sources: 2005-04-13 18:29:23 +02:00
make_binary_distribution.sh Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build 2007-07-20 11:41:25 +02:00
make_sharedlib_distribution.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
make_win_bin_dist Update make_win_bin_dist to also copy mysql-test/suite directory 2007-06-29 14:43:54 +02:00
Makefile.am Merge trift2.:/MySQL/M50/netware-cross-5.0 2007-05-03 18:08:06 +02:00
msql2mysql.sh gen_lex_hash.cc: 2007-01-31 00:06:42 +01:00
mysql_config.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql_convert_table_format.sh Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
mysql_find_rows.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql_fix_extensions.sh mysql_fix_extensions.sh tool copied from 4.0 tree (referenced in manual). 2002-05-16 10:13:42 +10:00
mysql_fix_privilege_tables.sh Bug#20166 mysql-test-run.pl does not test system privilege tables creation 2007-02-26 11:49:24 +01:00
mysql_install_db.sh Merge xiphis.org:/home/antony/work2/mysql-5.1-engines 2007-05-04 23:35:14 -07:00
mysql_secure_installation.sh Merge mysql.com:/home/kent/bk/tmp/mysql-4.1-build 2007-01-01 05:31:23 +01:00
mysql_setpermission.sh - Applied patch provided by Martin Mokrejs <mmokrejs@natur.cuni.cz> 2003-04-25 21:58:25 +02:00
mysql_system_tables.sql Fix for BUG#30029: mysql_upgrade fails for 5.0 -> 5.1.21, 2007-07-26 20:05:01 +04:00
mysql_system_tables_data.sql Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint 2007-04-13 15:13:12 +02:00
mysql_system_tables_fix.sql Patch for the following bugs: 2007-06-28 21:34:54 +04:00
mysql_test_data_timezone.sql Bug#20166 mysql-test-run.pl does not test system privilege tables creation 2007-02-26 11:49:24 +01:00
mysql_zap.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysqlaccess.conf configure fixes 2000-09-14 15:10:06 +03:00
mysqlaccess.sh BUG#24780 workaround for broken installations that depend on using /etc, but were configured differently 2007-01-09 09:32:56 +01:00
mysqlbug.sh Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-11 09:43:44 -05:00
mysqld_multi.sh Bug #27390: mysqld_multi --config-file= not working as documented 2007-04-28 01:27:54 +02:00
mysqld_safe.sh Bug #29634: mysqld_safe does not set err_log variable, error log file is not created 2007-07-09 16:10:43 -06:00
mysqldumpslow.sh Search through options to find where the slow query log actually is. 2006-12-18 21:12:01 -08:00
mysqlhotcopy.sh Merge shellback.(none):/home/msvensson/mysql/mysql-4.1-maint 2006-10-03 09:05:34 +02:00