summaryrefslogtreecommitdiff
path: root/mysql-test/r/lowercase_view.result
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-06-25 15:59:44 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-06-25 15:59:44 +0300
commit3e1a47070518a1995cc48e28c36b7c817d5f6008 (patch)
tree0e836662ec6132532d5428bce51937f74320bbff /mysql-test/r/lowercase_view.result
parentfd0eb0c1b02879b527471f4304f4a443fdd96fa9 (diff)
downloadmariadb-git-3e1a47070518a1995cc48e28c36b7c817d5f6008.tar.gz
Bug #53095: SELECT column_name FROM INFORMATION_SCHEMA.STATISTICS
returns nothing When looking for table or database names inside INFORMATION_SCHEMA we must convert the table and database names to lowercase (just as it's done in the rest of the server) when lowercase_table_names is non-zero. This will allow us to find the same tables that we would find if there is no condition. Fixed by converting to lower case when extracting the database and table name conditions. Test case added.
Diffstat (limited to 'mysql-test/r/lowercase_view.result')
-rw-r--r--mysql-test/r/lowercase_view.result17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/lowercase_view.result b/mysql-test/r/lowercase_view.result
index c37dc41c495..33c87ec101c 100644
--- a/mysql-test/r/lowercase_view.result
+++ b/mysql-test/r/lowercase_view.result
@@ -148,3 +148,20 @@ a
DROP VIEW v1;
DROP TABLE t1;
End of 5.0 tests.
+#
+# Bug #53095: SELECT column_name FROM INFORMATION_SCHEMA.STATISTICS
+# returns nothing
+#
+CREATE TABLE `ttt` (
+`f1` char(3) NOT NULL,
+PRIMARY KEY (`f1`)
+) ENGINE=myisam DEFAULT CHARSET=latin1;
+SELECT count(COLUMN_NAME) FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_NAME =
+'TTT';
+count(COLUMN_NAME)
+1
+SELECT count(*) FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_NAME = 'TTT';
+count(*)
+1
+DROP TABLE `ttt`;
+End of 5.0 tests.