mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
e0e0f9e3d4
Part V: performance schema implementation
75 lines
2.1 KiB
Text
75 lines
2.1 KiB
Text
# 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
|
|
|
|
--source include/not_embedded.inc
|
|
--source include/have_perfschema.inc
|
|
|
|
select * from performance_schema.SETUP_OBJECTS;
|
|
|
|
select * from performance_schema.SETUP_OBJECTS
|
|
where object_type = 'TABLE';
|
|
|
|
select * from performance_schema.SETUP_OBJECTS
|
|
where enabled='YES';
|
|
|
|
# Not implemented yet
|
|
--replace_result '\'setup_objects' '\'SETUP_OBJECTS'
|
|
--error ER_ILLEGAL_HA
|
|
insert into performance_schema.SETUP_OBJECTS
|
|
set object_type='TABLE', object_schema='FOO', object_name='BAR',
|
|
enabled='YES', timed='YES', aggregated='YES';
|
|
|
|
# Not implemented yet
|
|
# --error ER_ILLEGAL_HA
|
|
update performance_schema.SETUP_OBJECTS
|
|
set object_type='TABLE';
|
|
|
|
# Not implemented yet
|
|
# --error ER_ILLEGAL_HA
|
|
update performance_schema.SETUP_OBJECTS
|
|
set object_schema='ILLEGAL';
|
|
|
|
# Not implemented yet
|
|
# --error ER_ILLEGAL_HA
|
|
update performance_schema.SETUP_OBJECTS
|
|
set object_name='ILLEGAL';
|
|
|
|
update performance_schema.SETUP_OBJECTS
|
|
set enabled='NO';
|
|
|
|
update performance_schema.SETUP_OBJECTS
|
|
set timed='NO';
|
|
|
|
update performance_schema.SETUP_OBJECTS
|
|
set aggregated='NO';
|
|
|
|
select * from performance_schema.SETUP_OBJECTS;
|
|
|
|
update performance_schema.SETUP_OBJECTS
|
|
set enabled='YES', timed='YES', aggregated='YES';
|
|
|
|
delete from performance_schema.SETUP_OBJECTS
|
|
where object_type = 'TABLE';
|
|
|
|
delete from performance_schema.SETUP_OBJECTS;
|
|
|
|
LOCK TABLES performance_schema.SETUP_OBJECTS READ;
|
|
UNLOCK TABLES;
|
|
|
|
LOCK TABLES performance_schema.SETUP_OBJECTS WRITE;
|
|
UNLOCK TABLES;
|
|
|