1
1
Warnings:
2
- Warning 1105 No file name. Table will use t1.xml
2
+ Warning 1105 No file name. Table will use t1.xml
3
3
#
4
4
# Beginning of grant.inc
5
5
#
6
6
CREATE USER user@localhost;
7
7
GRANT ALL PRIVILEGES ON *.* TO user@localhost;
8
8
REVOKE FILE ON *.* FROM user@localhost;
9
- connect user,localhost,user,,;
10
- connection user;
11
9
SELECT user();
12
10
user()
13
11
user@localhost
14
12
CREATE TABLE t1 (a INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML OPTION_LIST='xmlsup=libxml2,rownode=row';
15
13
Warnings:
16
- Warning 1105 No file name. Table will use t1.xml
14
+ Warning 1105 No file name. Table will use t1.xml
17
15
INSERT INTO t1 VALUES (10);
18
16
SELECT * FROM t1;
19
17
a
@@ -36,13 +34,11 @@ DROP VIEW v1;
36
34
DROP TABLE t1;
37
35
CREATE TABLE t1 (a INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML OPTION_LIST='xmlsup=libxml2,rownode=row' FILE_NAME='t1.EXT';
38
36
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
39
- connection default;
40
37
SELECT user();
41
38
user()
42
39
root@localhost
43
40
CREATE TABLE t1 (a INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML OPTION_LIST='xmlsup=libxml2,rownode=row' FILE_NAME='t1.EXT';
44
41
INSERT INTO t1 VALUES (10);
45
- connection user;
46
42
SELECT user();
47
43
user()
48
44
user@localhost
@@ -65,12 +61,10 @@ ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
65
61
CREATE VIEW v1 AS SELECT * FROM t1;
66
62
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
67
63
# Testing a VIEW created with FILE privileges but accessed with no FILE
68
- connection default;
69
64
SELECT user();
70
65
user()
71
66
root@localhost
72
67
CREATE SQL SECURITY INVOKER VIEW v1 AS SELECT * FROM t1;
73
- connection user;
74
68
SELECT user();
75
69
user()
76
70
user@localhost
@@ -82,25 +76,21 @@ UPDATE v1 SET a=123;
82
76
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
83
77
DELETE FROM v1;
84
78
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
85
- connection default;
86
79
SELECT user();
87
80
user()
88
81
root@localhost
89
82
DROP VIEW v1;
90
83
DROP TABLE t1;
91
84
CREATE TABLE t1 (a INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML OPTION_LIST='xmlsup=libxml2,rownode=row';
92
85
Warnings:
93
- Warning 1105 No file name. Table will use t1.xml
86
+ Warning 1105 No file name. Table will use t1.xml
94
87
INSERT INTO t1 VALUES (10);
95
- connection user;
96
88
SELECT user();
97
89
user()
98
90
user@localhost
99
91
ALTER TABLE t1 FILE_NAME='t1.EXT';
100
92
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
101
- connection default;
102
93
DROP TABLE t1;
103
- disconnect user;
104
94
DROP USER user@localhost;
105
95
#
106
96
# End of grant.inc
0 commit comments