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

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/r/rpl_row_USER.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
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
DROP DATABASE IF EXISTS mysqltest1;
 
8
CREATE DATABASE mysqltest1;
 
9
CREATE USER tester IDENTIFIED BY 'test';
 
10
GRANT ALL ON mysqltest1.* TO 'tester'@'%' IDENTIFIED BY 'test';
 
11
GRANT ALL ON mysqltest1.* TO ''@'localhost%';
 
12
FLUSH PRIVILEGES;
 
13
CREATE TABLE mysqltest1.t1 (a INT, users VARCHAR(255), PRIMARY KEY(a));
 
14
INSERT INTO mysqltest1.t1 VALUES(1,USER());
 
15
INSERT INTO mysqltest1.t1 VALUES(2,CURRENT_USER());
 
16
create procedure mysqltest1.p1()
 
17
begin
 
18
INSERT INTO mysqltest1.t1 VALUES(3,USER());
 
19
INSERT INTO mysqltest1.t1 VALUES(4,CURRENT_USER());
 
20
end|
 
21
CALL mysqltest1.p1();
 
22
SELECT * FROM mysqltest1.t1 ORDER BY a;
 
23
a       users
 
24
1       tester@localhost
 
25
2       @localhost%
 
26
3       tester@localhost
 
27
4       @localhost%
 
28
SELECT * FROM mysqltest1.t1 ORDER BY a;
 
29
a       users
 
30
1       tester@localhost
 
31
2       @localhost%
 
32
3       tester@localhost
 
33
4       @localhost%
 
34
REVOKE ALL ON mysqltest1.* FROM 'tester'@'%';
 
35
REVOKE ALL ON mysqltest1.* FROM ''@'localhost%';
 
36
DROP DATABASE mysqltest1;
 
37
DROP USER 'tester';
 
38
DROP USER ''@'localhost%';
 
39
FLUSH PRIVILEGES;