mariadb/mysql-test/include
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
..
add_anonymous_users.inc Bug#20166 mysql-test-run.pl does not test system privilege tables creation 2007-02-26 11:49:24 +01:00
analyze_failure_sync_with_master.test Add analyze_testcase_failure which is called when mysqltest has failed 2006-10-24 17:36:46 +02:00
big_test.inc Moved some old test and added a new test to only be run with mysql-test-run --big 2005-04-07 19:24:14 +03:00
check-testcase.test Bug#40866: mysql-test-run's check of tests provides false failures due to timestamp 2008-11-24 16:53:32 -05:00
check_var_limit.inc Add detection of in_addr_t 2003-08-28 06:08:17 +03:00
common-tests.inc Post-merge fixes 2006-05-31 22:55:45 -07:00
count_sessions.inc 1. Slice of fix for Bug#42003 tests missing the disconnect of connections <> default 2009-02-02 22:20:25 +01:00
ctype_common.inc Merge mysql.com:/home/bar/mysql-work/mysql-5.0.b27580 2008-03-06 08:41:05 +04:00
ctype_filesort.inc bug#7284: strnxfrm returns different results for equal strings 2005-01-13 18:12:04 +04:00
ctype_innodb_like.inc ctype_innodb_like.inc: 2005-07-06 17:16:22 +05:00
ctype_like_escape.inc Add printout of file in which warning was detected 2006-10-06 00:57:10 +02:00
ctype_like_range_f1f2.inc Bug#32510 LIKE search fails with indexed 'eucjpms' and 'ujis' char column 2008-02-04 11:10:40 +04:00
ctype_regex.inc Bug#31081 server crash in regexp function 2007-10-05 12:15:11 +05:00
delete_anonymous_users.inc Bug#20166 mysql-test-run.pl does not test system privilege tables creation 2007-02-26 11:49:24 +01:00
diff_master_slave.inc BUG#37145 Killing a statement doing DDL may log binlog event with error code 1053 2009-03-27 13:19:50 +08:00
diff_tables.inc Bug#40465: mysqldump.test does no checking of dump or restore. 2009-05-21 16:03:53 -04:00
endspace.inc Move common trailing space checks into an include file. 2004-12-01 19:25:05 +04:00
federated.inc BUG#28370 federated test cases fail with binlog disabled 2007-05-15 11:32:33 +02:00
federated_cleanup.inc This is the same patch as 1.1937, with small variable declaration changes, memory 2005-07-15 17:33:47 -07:00
get_binlog_dump_thread_id.inc Workaround non portable use of "grep" and "cut" by loading the whole processlist 2007-02-26 09:16:22 +01:00
gis_generic.inc gis_generic test cases: 2007-03-29 11:20:08 +02:00
gis_keys.inc Bug#31909 - New gis.test creates warnings files 2007-11-01 15:03:09 +01:00
have_archive.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_bdb.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_big5.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_blackhole.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_bug25714.inc fix bug in test case for bug#25714 2007-08-28 16:06:08 +02:00
have_case_insensitive_fs.inc Bug#41049 does syntax "grant" case insensitive? 2009-10-27 12:09:19 +04:00
have_case_sensitive_file_system.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_community_features.inc Pull 5.1 treatment of community features into 5.0. 2009-05-05 17:03:23 -04:00
have_compress.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_cp932.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_cp1250_ch.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_crypt.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_csv.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_debug.inc Robustness feature. 2004-06-20 19:11:02 +02:00
have_eucjpms.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_euckr.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_exampledb.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_federated_db.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_gb2312.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_gbk.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_geometry.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_innodb.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_latin2_ch.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_local_infile.inc Changes to fix tests in pushbuild. 2008-01-31 12:17:40 +01:00
have_log_bin.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_lowercase0.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_lowercase1.inc Bug #27653: Temp table can't be created if lower_case_table_names=1 and 2007-04-30 23:16:46 +02:00
have_multi_ndb.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_ndb.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_outfile.inc Change "exec rm" to "remove_file" 2007-06-27 18:21:20 +02:00
have_profiling.inc Pull 5.1 treatment of community features into 5.0. 2009-05-05 17:03:23 -04:00
have_query_cache.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_sjis.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_ssl.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_tis620.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_ucs2.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_udf.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
have_ujis.inc Bug#30563: Is not possible to create rpl_ or innodb test if needed \ 2008-07-04 12:41:27 -04:00
im_check_env.inc Preliminary patch for the following bugs: 2006-08-29 15:46:40 +04:00
innodb_rollback_on_timeout.inc Added innodb_rollback_on_timeout option to restore the 4.1 2006-12-19 16:57:51 -07:00
kill_query.inc BUG#37145 Killing a statement doing DDL may log binlog event with error code 1053 2009-03-27 13:19:50 +08:00
kill_query_and_diff_master_slave.inc BUG#37145 Killing a statement doing DDL may log binlog event with error code 1053 2009-03-27 13:19:50 +08:00
loaddata_autocom.inc Fix for BUG#11151 "LOAD DATA INFILE commits transaction in 5.0". 2006-09-05 16:52:05 +02:00
master-slave-end.inc BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
master-slave.inc Fix typo 2007-06-07 20:25:22 +02:00
mysqldump.inc Bug#40465 - mysqldump.test does no checking of dump or restore 2009-05-22 10:38:17 -04:00
mysqltest-x.inc Bug#12959 mysqltest crashes if testcase passed with -x option 2005-09-05 16:50:32 +02:00
ndb_backup.inc Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to 'grep' call. 2009-03-15 12:25:14 -04:00
ndb_backup_print.inc Bug#38311 Some tests use 'rm' which is not portable 2008-09-20 02:21:28 -04:00
ndb_default_cluster.inc Bug #20820 auto inc table not handled correctly when restored from cluster backup 2006-07-06 18:50:44 +02:00
ndb_wait_connected.inc Bug#32025 ndb_waiter does too many roundtrips to ndb_mgmd 2008-02-21 13:23:58 +01:00
not_as_root.inc Use "eval select" when evaluating the environment variable "$MYSQL_TEST_ROOT" 2006-04-24 12:01:16 +02:00
not_embedded.inc After merge fixes 2003-05-21 21:39:58 +03:00
not_openssl.inc BUG#10589: des_encrypt functionality always return NULL 2005-06-17 18:07:46 +02:00
not_windows.inc Skip two tests that fail on Windows that just reflect limitations of 2005-08-03 17:38:55 -07:00
ps_conv.inc Bug#27590: Wrong DATE/DATETIME comparison. 2007-04-27 00:12:09 +04:00
ps_create.inc bug#10466: Datatype "timestamp" displays "YYYYMMDDHHMMSS" irrespective of display sizes. 2005-06-20 12:09:00 +02:00
ps_modify.inc Patch two (the final one) for Bug#7306 "the server side preparedStatement 2005-06-07 14:11:36 +04:00
ps_modify1.inc Small bug fix 2004-12-13 21:00:43 +01:00
ps_query.inc Bug #32400: Complex SELECT query returns correct result 2007-11-20 19:18:21 +02:00
ps_renew.inc Results of WL#1856 "Conversion of client_test.c tests cases to mysqltest 2004-09-25 19:08:02 +04:00
report-features.test add --report-features to mysql-test-run.pl 2006-11-10 13:12:08 +01:00
rpl_loaddata_charset.inc BUG#45516 SQL thread does not use database charset properly 2009-08-12 11:54:05 +08:00
rpl_stmt_seq.inc Fix of 5.0 tree 2005-06-17 14:03:27 +02:00
rpl_trigger_common.inc Post-fix for BUG#43264 2009-08-03 14:37:50 +01:00
show_binary_logs.inc Bug #18199 PURGE BINARY LOGS fails silently with missing logs; 2008-03-17 20:19:04 +02:00
show_binlog_events.inc BUG#33029 5.0 to 5.1 replication fails on dup key when inserting 2008-03-14 10:03:01 +08:00
show_binlog_events2.inc Add missing include test file for rpl_server_id test 2008-01-06 15:17:47 +08:00
show_msg.inc Update mysqltest to latest version 2006-10-03 15:33:44 +02:00
show_msg80.inc Update mysqltest to latest version 2006-10-03 15:33:44 +02:00
sp-vars.inc Remove compiler warnings 2006-11-20 22:42:06 +02:00
start_slave.inc BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
stop_slave.inc BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
strict_autoinc.inc Bug#18908: ERROR 1406 (22001): Data too long for column :: using utf8 2006-10-30 10:14:03 +04:00
system_db_struct.inc Add all SQL_MODE settings to proc table. (Bug #8902) 2005-03-08 17:40:43 -08:00
test_outfile.inc Make it possible to run mysql-test-run.pl with default test suite in different vardir. 2006-01-24 08:30:54 +01:00
testdb_only.inc WL#1420 convert NIST test for mysql 2005-01-26 10:19:28 +01:00
uses_vardir.inc Bug#28718 Running backup testcase fails in mysql testsuite of MySQL-enterprise-5.0.40 2007-06-07 23:18:19 +02:00
varchar.inc Fix bug #10802 Index is not used if table using BDB engine on HP-UX 2005-08-15 13:02:29 +04:00
wait_condition.inc Fix for 2008-06-25 16:59:38 +02:00
wait_for_query_to_suceed.inc Bug#18654 Test is timing-dependent and fails from scheduling effects (?) 2006-10-30 14:42:28 +01:00
wait_for_slave_io_to_stop.inc Backport of 2007-06-15 13:53:36 +05:00
wait_for_slave_param.inc Fix for bug #28144: "Slave_IO_Running" differs in replication tests 2007-06-15 16:09:28 +05:00
wait_for_slave_sql_error.inc BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
wait_for_slave_sql_error_and_skip.inc BUG#37051 Replication rules not evaluated correctly 2009-03-05 18:10:44 +08:00
wait_for_slave_sql_to_stop.inc Backport of 2007-06-15 13:53:36 +05:00
wait_for_slave_to_start.inc Backport of 2007-06-15 13:53:36 +05:00
wait_for_slave_to_stop.inc Backport of 2007-06-15 13:53:36 +05:00
wait_show_condition.inc Bug #42419: test suite fix 2009-02-20 11:12:06 +02:00
wait_show_pattern.inc Fix for bug #25044 "ALTER TABLE ... ENABLE KEYS acquires global 'opening 2007-01-19 23:15:59 +03:00
wait_slave_status.inc Fix for bug #25044 "ALTER TABLE ... ENABLE KEYS acquires global 'opening 2007-01-19 23:15:59 +03:00
wait_until_count_sessions.inc Merge of fix for Bug#42003 and Bug#43114 into more actual GCA tree 2009-03-05 14:35:03 +01:00
wait_until_disconnected.inc Fix for bug #43801: mysql.test takes too long, fails due to 2009-03-24 23:44:38 +03:00
windows.inc Add test for named pipes on windows 2007-09-24 12:42:44 +02:00