diff options
author | unknown <df@pippilotta.erinye.com> | 2007-08-24 10:13:03 +0200 |
---|---|---|
committer | unknown <df@pippilotta.erinye.com> | 2007-08-24 10:13:03 +0200 |
commit | 3fa6127979f23ebe22db0cd36416b3f572d45c3e (patch) | |
tree | 1996af4c6c00c74ebb8c2f4e8053b3731c763f4b /mysql-test/t/information_schema.test | |
parent | aa52d6d703f7ecc0538fbdb3c05421a0056b4043 (diff) | |
parent | 0aefd73b3dda1705270fb756329c32e10e1cc476 (diff) | |
download | mariadb-git-3fa6127979f23ebe22db0cd36416b3f572d45c3e.tar.gz |
Merge dfischer@bk-internal.mysql.com:/home/bk/mysql-5.1-build
into pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.1-build
libmysql/libmysql.c:
Auto merged
mysql-test/r/information_schema.result:
Auto merged
mysql-test/t/information_schema.test:
Auto merged
sql/ha_partition.cc:
Auto merged
sql/ha_partition.h:
Auto merged
sql/handler.cc:
Auto merged
sql/item.cc:
Auto merged
sql/item_cmpfunc.h:
Auto merged
sql/opt_range.cc:
Auto merged
sql/sql_lex.cc:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_show.cc:
Auto merged
tests/mysql_client_test.c:
Auto merged
Diffstat (limited to 'mysql-test/t/information_schema.test')
-rw-r--r-- | mysql-test/t/information_schema.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/t/information_schema.test b/mysql-test/t/information_schema.test index 1d06a155717..8a3d62ba91f 100644 --- a/mysql-test/t/information_schema.test +++ b/mysql-test/t/information_schema.test @@ -1047,6 +1047,31 @@ alter database; --error ER_PARSE_ERROR alter database test; +# +# Bug#27629 Possible security flaw in INFORMATION_SCHEMA and SHOW statements +# + +create database mysqltest; +create table mysqltest.t1(a int, b int, c int); +create trigger mysqltest.t1_ai after insert on mysqltest.t1 + for each row set @a = new.a + new.b + new.c; +grant select(b) on mysqltest.t1 to mysqltest_1@localhost; + +select trigger_name from information_schema.triggers +where event_object_table='t1'; +show triggers from mysqltest; + +connect (con27629,localhost,mysqltest_1,,mysqltest); +show columns from t1; +select column_name from information_schema.columns where table_name='t1'; + +show triggers; +select trigger_name from information_schema.triggers +where event_object_table='t1'; +connection default; +drop user mysqltest_1@localhost; +drop database mysqltest; + --echo End of 5.0 tests. # # Show engines |