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

« back to all changes in this revision

Viewing changes to mysql-test/r/lowercase_fs_off.result

  • 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
create database d1;
 
2
grant all on d1.* to 'sample'@'localhost' identified by 'password';
 
3
flush privileges;
 
4
select database();
 
5
database()
 
6
d1
 
7
create database d2;
 
8
ERROR 42000: Access denied for user 'sample'@'localhost' to database 'd2'
 
9
create database D1;
 
10
ERROR 42000: Access denied for user 'sample'@'localhost' to database 'D1'
 
11
drop user 'sample'@'localhost';
 
12
drop database if exists d1;
 
13
CREATE DATABASE d1;
 
14
USE d1;
 
15
CREATE TABLE T1(f1 INT);
 
16
CREATE TABLE t1(f1 INT);
 
17
GRANT SELECT ON T1 to user_1@localhost;
 
18
select * from t1;
 
19
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1'
 
20
select * from T1;
 
21
f1
 
22
GRANT SELECT ON t1 to user_1@localhost;
 
23
select * from information_schema.table_privileges;
 
24
GRANTEE TABLE_CATALOG   TABLE_SCHEMA    TABLE_NAME      PRIVILEGE_TYPE  IS_GRANTABLE
 
25
'user_1'@'localhost'    def     d1      T1      SELECT  NO
 
26
'user_1'@'localhost'    def     d1      t1      SELECT  NO
 
27
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
 
28
DROP USER user_1@localhost;
 
29
DROP DATABASE d1;
 
30
USE test;
 
31
CREATE DATABASE db1;
 
32
USE db1;
 
33
CREATE PROCEDURE p1() BEGIN END;
 
34
CREATE FUNCTION f1(i INT) RETURNS INT RETURN i+1;
 
35
GRANT USAGE ON db1.* to user_1@localhost;
 
36
GRANT EXECUTE ON PROCEDURE db1.P1 to user_1@localhost;
 
37
GRANT EXECUTE ON FUNCTION db1.f1 to user_1@localhost;
 
38
GRANT UPDATE ON db1.* to USER_1@localhost;
 
39
call p1();
 
40
call P1();
 
41
select f1(1);
 
42
f1(1)
 
43
2
 
44
call p1();
 
45
ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.p1'
 
46
call P1();
 
47
ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.P1'
 
48
select f1(1);
 
49
ERROR 42000: execute command denied to user 'USER_1'@'localhost' for routine 'db1.f1'
 
50
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost;
 
51
REVOKE ALL PRIVILEGES, GRANT OPTION FROM USER_1@localhost;
 
52
DROP FUNCTION f1;
 
53
DROP PROCEDURE p1;
 
54
DROP USER user_1@localhost;
 
55
DROP USER USER_1@localhost;
 
56
DROP DATABASE db1;
 
57
use test;
 
58
#
 
59
# Extra test coverage for Bug#56595 RENAME TABLE causes assert on OS X
 
60
#
 
61
CREATE TABLE t1(a INT);
 
62
CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET new.a= 1;
 
63
RENAME TABLE t1 TO T1;
 
64
ALTER TABLE T1 RENAME t1;
 
65
DROP TABLE t1;