diff options
author | unknown <bell@sanja.is.com.ua> | 2004-02-20 22:44:54 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-02-20 22:44:54 +0200 |
commit | bdf490541dc3715142fbe9a76465f040f13fb875 (patch) | |
tree | f09668bcb5a732360f64157d3bb8daee3dd1003c /mysql-test/t/lowercase_table_qcache.test | |
parent | 9977ce0c718de3ffc9eeb2445d3eb5fc2ef899cc (diff) | |
download | mariadb-git-bdf490541dc3715142fbe9a76465f040f13fb875.tar.gz |
fixed comparation of tables/database names with --lower_case_table_names (BUG#2880)
mysql-test/r/lowercase_table.result:
test of multi-update/multi-delete
mysql-test/t/lowercase_table.test:
test of multi-update/multi-delete
sql/sql_cache.cc:
correct databese names comparation
sql/sql_parse.cc:
correct table names comparation in multi-delete
Diffstat (limited to 'mysql-test/t/lowercase_table_qcache.test')
-rw-r--r-- | mysql-test/t/lowercase_table_qcache.test | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mysql-test/t/lowercase_table_qcache.test b/mysql-test/t/lowercase_table_qcache.test new file mode 100644 index 00000000000..7416de25e1d --- /dev/null +++ b/mysql-test/t/lowercase_table_qcache.test @@ -0,0 +1,29 @@ +-- source include/have_query_cache.inc +# +# Test of query cache with --lower-case-table-names +# +set GLOBAL query_cache_size=1355776; + +--disable_warnings +drop database if exists MySQLtesT; +--enable_warnings + +create database MySQLtesT; +create table MySQLtesT.t1 (a int); +select * from MySQLtesT.t1; +show status like "Qcache_queries_in_cache"; +drop database mysqltest; +show status like "Qcache_queries_in_cache"; + +use MySQL; +disable_result_log; +select * from db; +enable_result_log; +show status like "Qcache_queries_in_cache"; +use test; +disable_result_log; +select * from MySQL.db; +enable_result_log; +show status like "Qcache_queries_in_cache"; + +set GLOBAL query_cache_size=0;
\ No newline at end of file |