mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge next-mr -> next-4284.
mysql-test/t/disabled.def: Restore disabled ssl tests: SSL certificates were updated. Disable sp_sync.test, the test case can't work in next-4284. mysql-test/t/partition_innodb.test: Disable parsing of the test case for Bug#47343, the test can not work in next-4284. mysql-test/t/ps_ddl.test: Update results (CREATE TABLE IF NOT EXISTS takes into account existence of the temporary table).
This commit is contained in:
@@ -1390,6 +1390,33 @@ SET TIMESTAMP=@@TIMESTAMP + 10000000;
|
||||
SELECT 'OK' AS TEST_RESULT FROM INFORMATION_SCHEMA.PROCESSLIST WHERE time < 0;
|
||||
SET TIMESTAMP=DEFAULT;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Bug #50276: Security flaw in INFORMATION_SCHEMA.TABLES
|
||||
--echo #
|
||||
CREATE DATABASE db1;
|
||||
USE db1;
|
||||
CREATE TABLE t1 (id INT);
|
||||
CREATE USER nonpriv;
|
||||
USE test;
|
||||
|
||||
connect (nonpriv_con, localhost, nonpriv,,);
|
||||
connection nonpriv_con;
|
||||
--echo # connected as nonpriv
|
||||
--echo # Should return 0
|
||||
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1';
|
||||
USE INFORMATION_SCHEMA;
|
||||
--echo # Should return 0
|
||||
SELECT COUNT(*) FROM TABLES WHERE TABLE_NAME='t1';
|
||||
|
||||
connection default;
|
||||
--echo # connected as root
|
||||
disconnect nonpriv_con;
|
||||
DROP USER nonpriv;
|
||||
DROP TABLE db1.t1;
|
||||
DROP DATABASE db1;
|
||||
|
||||
|
||||
--echo End of 5.1 tests.
|
||||
|
||||
--echo #
|
||||
|
||||
Reference in New Issue
Block a user