File tree 3 files changed +27
-7
lines changed
tests/logictest/suites/gen/05_ddl
3 files changed +27
-7
lines changed Original file line number Diff line number Diff line change
1
+ statement ok
2
+ DROP USER IF EXISTS 'test-a'@'localhost';
3
+
4
+ statement ok
5
+ DROP USER IF EXISTS 'test-b'@'localhost';
6
+
7
+ statement ok
8
+ DROP USER IF EXISTS 'test-c'@'localhost';
9
+
10
+ statement ok
11
+ DROP USER IF EXISTS 'test-d@localhost';
12
+
1
13
statement ok
2
14
CREATE USER 'test-a'@'localhost' IDENTIFIED BY 'password';
3
15
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ DROP USER IF EXISTS 'test-c'@'localhost';
13
13
statement ok
14
14
DROP USER IF EXISTS 'test-d@localhost';
15
15
16
+ statement ok
17
+ DROP USER IF EXISTS 'test-e';
18
+
16
19
statement ok
17
20
CREATE USER 'test-a'@'localhost' IDENTIFIED BY 'password';
18
21
@@ -32,14 +35,22 @@ statement ok
32
35
CREATE USER IF NOT EXISTS 'test-d@localhost' IDENTIFIED WITH sha256_password BY 'password';
33
36
34
37
statement ok
35
- DROP USER 'test-a'@'localhost';
38
+ CREATE USER IF NOT EXISTS 'test-e' IDENTIFIED BY '123' WITH DEFAULT_ROLE = 'role1';
39
+
40
+ statement ok
41
+ DROP USER IF EXISTS 'test-a'@'localhost';
42
+
43
+ statement ok
44
+ DROP USER IF EXISTS 'test-b'@'localhost';
36
45
37
46
statement ok
38
- DROP USER 'test-b '@'localhost';
47
+ DROP USER IF EXISTS 'test-c '@'localhost';
39
48
40
49
statement ok
41
- DROP USER 'test-c'@' localhost';
50
+ DROP USER IF EXISTS 'test-d@ localhost';
42
51
43
52
statement ok
44
- DROP USER 'test-d@localhost';
53
+ DROP USER IF EXISTS 'test-d@localhost';
45
54
55
+ statement ok
56
+ DROP USER IF EXISTS 'test-e';
Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ ALTER USER 'test-i@localhost' IDENTIFIED WITH sha256_password BY 'new-password';
43
43
statement ok
44
44
ALTER USER 'test-h'@'localhost' WITH DEFAULT_ROLE = 'role1';
45
45
46
- statement query I
47
- SELECT * FROM system.users;
48
-
49
46
statement ok
50
47
DROP USER IF EXISTS 'test-e'@'localhost';
51
48
You can’t perform that action at this time.
0 commit comments