mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
WL#2360 Performance schema
Part V: performance schema implementation
This commit is contained in:
57
mysql-test/suite/perfschema/t/misc.test
Normal file
57
mysql-test/suite/perfschema/t/misc.test
Normal file
@@ -0,0 +1,57 @@
|
||||
# Copyright (C) 2009 Sun Microsystems, Inc
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Tests for PERFORMANCE_SCHEMA
|
||||
# Miscelaneous
|
||||
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_perfschema.inc
|
||||
|
||||
#
|
||||
# Bug#45496 Performance schema: assertion fails in
|
||||
# ha_perfschema::rnd_init:223
|
||||
#
|
||||
|
||||
--disable_result_log
|
||||
SELECT EVENT_ID FROM performance_schema.EVENTS_WAITS_CURRENT
|
||||
WHERE THREAD_ID IN
|
||||
(SELECT THREAD_ID FROM performance_schema.PROCESSLIST)
|
||||
AND EVENT_NAME IN
|
||||
(SELECT NAME FROM performance_schema.SETUP_INSTRUMENTS
|
||||
WHERE NAME LIKE "wait/synch/%")
|
||||
LIMIT 1;
|
||||
--enable_result_log
|
||||
|
||||
#
|
||||
# Bug#45088 Should not be able to create tables of engine PERFORMANCE_SCHEMA
|
||||
#
|
||||
|
||||
--error ER_WRONG_PERFSCHEMA_USAGE
|
||||
create table test.t1(a int) engine=performance_schema;
|
||||
|
||||
#
|
||||
# Bug#44897 Performance Schema: can create a ghost table in another database
|
||||
#
|
||||
|
||||
--error ER_WRONG_PERFSCHEMA_USAGE
|
||||
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
||||
|
||||
#
|
||||
# Bug#44898 PerformanceSchema: can create a table in db performance_schema, cannot insert
|
||||
#
|
||||
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
create table performance_schema.t1(a int);
|
||||
|
||||
Reference in New Issue
Block a user