~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/t/innodb_bug34053.test

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Make sure http://bugs.mysql.com/34053 remains fixed.
 
3
#
 
4
 
 
5
-- source include/not_embedded.inc
 
6
-- source include/have_innodb.inc
 
7
 
 
8
SET default_storage_engine=InnoDB;
 
9
 
 
10
# we do not really care about what gets printed, we are only
 
11
# interested in getting success or failure according to our
 
12
# expectations
 
13
-- disable_query_log
 
14
-- disable_result_log
 
15
 
 
16
GRANT USAGE ON *.* TO 'shane'@'localhost' IDENTIFIED BY '12345';
 
17
FLUSH PRIVILEGES;
 
18
 
 
19
-- connect (con1,localhost,shane,12345,)
 
20
 
 
21
-- connection con1
 
22
-- error ER_SPECIFIC_ACCESS_DENIED_ERROR
 
23
CREATE TABLE innodb_monitor (a INT) ENGINE=INNODB;
 
24
# this should only fail with UNIV_MEM_DEBUG
 
25
CREATE TABLE innodb_mem_validate (a INT) ENGINE=INNODB;
 
26
DROP TABLE innodb_mem_validate;
 
27
CREATE TABLE innodb_sql (a INT) ENGINE=INNODB;
 
28
DROP TABLE innodb_sql;
 
29
CREATE TABLE innodb_monitorx (a INT) ENGINE=INNODB;
 
30
DROP TABLE innodb_monitorx;
 
31
CREATE TABLE innodb_monito (a INT) ENGINE=INNODB;
 
32
DROP TABLE innodb_monito;
 
33
CREATE TABLE xinnodb_monitor (a INT) ENGINE=INNODB;
 
34
DROP TABLE xinnodb_monitor;
 
35
CREATE TABLE nnodb_monitor (a INT) ENGINE=INNODB;
 
36
DROP TABLE nnodb_monitor;
 
37
 
 
38
-- connection default
 
39
CREATE TABLE innodb_monitor (a INT) ENGINE=INNODB;
 
40
CREATE TABLE innodb_mem_validate (a INT) ENGINE=INNODB;
 
41
 
 
42
-- connection con1
 
43
-- error ER_SPECIFIC_ACCESS_DENIED_ERROR
 
44
DROP TABLE innodb_monitor;
 
45
DROP TABLE innodb_mem_validate;
 
46
 
 
47
-- connection default
 
48
DROP TABLE innodb_monitor;
 
49
DROP USER 'shane'@'localhost';
 
50
 
 
51
-- disconnect con1