mariadb/scripts
Sergey Glukhov 58b7761ed8 Bug#41049 does syntax "grant" case insensitive?
Problem 1:
column_priv_hash uses utf8_general_ci collation
for the key comparison. The key consists of user name,
db name and table name. Thus user with privileges on table t1
is able to perform the same operation on T1
(the similar situation with user name & db name, see acl_cache).
So collation which is used for column_priv_hash and acl_cache
should be case sensitive.
The fix:
replace system_charset_info with my_charset_utf8_bin for
column_priv_hash and acl_cache
Problem 2:
The same situation with proc_priv_hash, func_priv_hash,
the only difference is that Routine name is case insensitive.
So the fix is to use my_charset_utf8_bin for
proc_priv_hash & func_priv_hash and convert routine name into lower
case before writing the element into the hash and
before looking up the key.
Additional fix: mysql.procs_priv Routine_name field collation
is changed to utf8_general_ci.
It's necessary for REVOKE command
(to find a field by routine hash element values).
Note: 
It's safe for lower-case-table-names mode too because
db name & table name are converted into lower case
(see GRANT_NAME::GRANT_NAME).
2009-10-27 12:09:19 +04:00
..
.cvsignore
CMakeLists.txt scripts/CMakeLists.txt : Treat "mysql_upgrade_shell" the same way as all the other scripts. 2008-03-04 22:00:53 +01: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 This is a fix for bug#37808 2009-06-26 11:58:19 +02:00
make_sharedlib_distribution.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
make_win_bin_dist Just fix a silly typo in an error message ... 2009-04-14 21:46:56 +02:00
make_win_src_distribution_old.sh make_win_src_distribution_old.sh: 2007-08-14 00:03:05 +02:00
Makefile.am Makefile.am, CMakeLists.txt, mysql_secure_installation.pl.in: 2007-12-28 22:58:54 +01:00
msql2mysql.sh gen_lex_hash.cc: 2007-01-31 00:06:42 +01:00
mysql_config.pl.in make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: 2007-12-28 01:02:28 +01:00
mysql_config.sh Merge kaamos.(none):/data/src/mysql-5.0 2008-03-12 10:59:15 +03:00
mysql_convert_table_format.sh make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: 2007-12-28 01:02:28 +01:00
mysql_explain_log.sh Strip comments from queries before explaining them. Fixes BUG#34339 2008-02-06 04:33:27 +01:00
mysql_find_rows.sh Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysql_fix_extensions.sh Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysql_fix_privilege_tables.sh Bug #15327: configure: --with-tcp-port option being partially ignored 2007-09-13 16:19:46 +02:00
mysql_install_db.pl.in make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: 2007-12-28 01:02:28 +01:00
mysql_install_db.sh Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-release 2007-12-10 12:02:02 +01:00
mysql_prepare_privilege_tables_for_5.sql
mysql_secure_installation.pl.in Makefile.am, CMakeLists.txt, mysql_secure_installation.pl.in: 2007-12-28 22:58:54 +01: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 Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysql_system_tables.sql Bug#41049 does syntax "grant" case insensitive? 2009-10-27 12:09:19 +04:00
mysql_system_tables_data.sql Bug#35754: mysql_install_db does not work if no hostname is set 2008-09-24 08:59:56 -04:00
mysql_system_tables_fix.sql Bug#41049 does syntax "grant" case insensitive? 2009-10-27 12:09:19 +04:00
mysql_tableinfo.sh make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: 2007-12-28 01:02:28 +01: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_upgrade_shell.sh my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysql_zap.sh Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysqlaccess.conf
mysqlaccess.sh Use /usr/bin/perl as standard Perl install path (bug#44643) 2009-05-09 23:43:48 +02:00
mysqlbug.sh Modify "mysqlbug" ("scripts/mysqlbug.sh") so that it differs between the original 2007-10-18 12:03:30 +02:00
mysqld_multi.sh Bug #36654: mysqld_multi cannot start instances with different versions 2009-06-19 15:52:20 +03:00
mysqld_safe-watch.sh Bug #15327: configure: --with-tcp-port option being partially ignored 2007-09-13 16:19:46 +02:00
mysqld_safe.sh backport of Chad's fix for bug #39326 to 5.0-bugteam 2009-08-19 10:59:17 +03:00
mysqldumpslow.sh Bug#42027: Incorrect parsing of debug and verbose options for mysqldumpslow 2009-02-16 15:38:18 +01:00
mysqlhotcopy.sh Bug#35769 typo in mysqlhotcopy documentation 2009-04-28 18:16:17 +02:00