Skip to content

Commit 3979f13

Browse files
committed
Fix failing tests. Modified: storage/connect/mysql-test/connect/r/xml2_grant.result and storage/connect/mysql-test/connect/r/xml2_mdev5261.result
1 parent 0b9ea65 commit 3979f13

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

storage/connect/mysql-test/connect/r/xml2_grant.result

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
Warnings:
2-
Warning 1105 No file name. Table will use t1.xml
2+
Warning 1105 No file name. Table will use t1.xml
33
#
44
# Beginning of grant.inc
55
#
66
CREATE USER user@localhost;
77
GRANT ALL PRIVILEGES ON *.* TO user@localhost;
88
REVOKE FILE ON *.* FROM user@localhost;
9-
connect user,localhost,user,,;
10-
connection user;
119
SELECT user();
1210
user()
1311
user@localhost
1412
CREATE TABLE t1 (a INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML OPTION_LIST='xmlsup=libxml2,rownode=row';
1513
Warnings:
16-
Warning 1105 No file name. Table will use t1.xml
14+
Warning 1105 No file name. Table will use t1.xml
1715
INSERT INTO t1 VALUES (10);
1816
SELECT * FROM t1;
1917
a
@@ -36,13 +34,11 @@ DROP VIEW v1;
3634
DROP TABLE t1;
3735
CREATE TABLE t1 (a INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML OPTION_LIST='xmlsup=libxml2,rownode=row' FILE_NAME='t1.EXT';
3836
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
39-
connection default;
4037
SELECT user();
4138
user()
4239
root@localhost
4340
CREATE TABLE t1 (a INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML OPTION_LIST='xmlsup=libxml2,rownode=row' FILE_NAME='t1.EXT';
4441
INSERT INTO t1 VALUES (10);
45-
connection user;
4642
SELECT user();
4743
user()
4844
user@localhost
@@ -65,12 +61,10 @@ ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
6561
CREATE VIEW v1 AS SELECT * FROM t1;
6662
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
6763
# Testing a VIEW created with FILE privileges but accessed with no FILE
68-
connection default;
6964
SELECT user();
7065
user()
7166
root@localhost
7267
CREATE SQL SECURITY INVOKER VIEW v1 AS SELECT * FROM t1;
73-
connection user;
7468
SELECT user();
7569
user()
7670
user@localhost
@@ -82,25 +76,21 @@ UPDATE v1 SET a=123;
8276
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
8377
DELETE FROM v1;
8478
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
85-
connection default;
8679
SELECT user();
8780
user()
8881
root@localhost
8982
DROP VIEW v1;
9083
DROP TABLE t1;
9184
CREATE TABLE t1 (a INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML OPTION_LIST='xmlsup=libxml2,rownode=row';
9285
Warnings:
93-
Warning 1105 No file name. Table will use t1.xml
86+
Warning 1105 No file name. Table will use t1.xml
9487
INSERT INTO t1 VALUES (10);
95-
connection user;
9688
SELECT user();
9789
user()
9890
user@localhost
9991
ALTER TABLE t1 FILE_NAME='t1.EXT';
10092
ERROR 28000: Access denied for user 'user'@'localhost' (using password: NO)
101-
connection default;
10293
DROP TABLE t1;
103-
disconnect user;
10494
DROP USER user@localhost;
10595
#
10696
# End of grant.inc
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
Warnings:
2-
Warning 1105 No file name. Table will use t1.xml
2+
Warning 1105 No file name. Table will use t1.xml
33
SET NAMES utf8;
44
CREATE TABLE t1 (i INT UNIQUE NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML FILE_NAME='xt1.xml' OPTION_LIST='xmlsup=libxml2,Rownode=N';
55
ERROR HY000: Table type XML is not indexable
66
CREATE TABLE t1 (i INT NOT NULL) ENGINE=CONNECT TABLE_TYPE=XML FILE_NAME='xt1.xml' OPTION_LIST='xmlsup=libxml2,Rownode=N';
77
DESCRIBE t1;
8-
Field Type Null Key Default Extra
9-
i int(11) NO NULL
8+
Field Type Null Key Default Extra
9+
i int(11) NO NULL
1010
ALTER TABLE t1 ADD UNIQUE(i);
1111
ERROR HY000: Table type XML is not indexable
1212
CREATE UNIQUE INDEX i ON t1(i);
1313
ERROR HY000: Table type XML is not indexable
1414
DESCRIBE t1;
15-
Field Type Null Key Default Extra
16-
i int(11) NO NULL
15+
Field Type Null Key Default Extra
16+
i int(11) NO NULL
1717
INSERT INTO t1 VALUES(2),(5),(7);
1818
SELECT * FROM t1 WHERE i = 5;
1919
i
2020
5
2121
ALTER TABLE t1 DROP INDEX i;
22-
ERROR 42000: Can't DROP INDEX `i`; check that it exists
22+
ERROR 42000: Can't DROP 'i'; check that column/key exists
2323
DROP INDEX i ON t1;
24-
ERROR 42000: Can't DROP INDEX `i`; check that it exists
24+
ERROR 42000: Can't DROP 'i'; check that column/key exists
2525
DROP TABLE t1;

0 commit comments

Comments
 (0)