Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
14e237a9
Commit
14e237a9
authored
Aug 14, 2006
by
kostja@bodhi.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a test suite failure.
parent
9b05865b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
mysql-test/r/partition_grant.result
mysql-test/r/partition_grant.result
+2
-0
mysql-test/t/partition_grant.test
mysql-test/t/partition_grant.test
+8
-0
No files found.
mysql-test/r/partition_grant.result
View file @
14e237a9
...
@@ -3,6 +3,8 @@ create schema mysqltest_1;
...
@@ -3,6 +3,8 @@ create schema mysqltest_1;
use mysqltest_1;
use mysqltest_1;
create table t1 (a int) partition by list (a) (partition p1 values in (1), partition p2 values in (2), partition p3 values in (3));
create table t1 (a int) partition by list (a) (partition p1 values in (1), partition p2 values in (2), partition p3 values in (3));
insert into t1 values (1),(2);
insert into t1 values (1),(2);
grant usage on *.* to mysqltest_1@localhost;
revoke all privileges on *.* from mysqltest_1@localhost;
grant select,alter on mysqltest_1.* to mysqltest_1@localhost;
grant select,alter on mysqltest_1.* to mysqltest_1@localhost;
show grants for current_user;
show grants for current_user;
Grants for mysqltest_1@localhost
Grants for mysqltest_1@localhost
...
...
mysql-test/t/partition_grant.test
View file @
14e237a9
...
@@ -17,6 +17,14 @@ use mysqltest_1;
...
@@ -17,6 +17,14 @@ use mysqltest_1;
create
table
t1
(
a
int
)
partition
by
list
(
a
)
(
partition
p1
values
in
(
1
),
partition
p2
values
in
(
2
),
partition
p3
values
in
(
3
));
create
table
t1
(
a
int
)
partition
by
list
(
a
)
(
partition
p1
values
in
(
1
),
partition
p2
values
in
(
2
),
partition
p3
values
in
(
3
));
insert
into
t1
values
(
1
),(
2
);
insert
into
t1
values
(
1
),(
2
);
# We don't have DROP USER IF EXISTS. Use this workaround to
# cleanup possible grants for mysqltest_1 left by previous tests
# and ensure consistent results of SHOW GRANTS command below.
--
disable_warnings
grant
usage
on
*.*
to
mysqltest_1
@
localhost
;
revoke
all
privileges
on
*.*
from
mysqltest_1
@
localhost
;
--
enable_warnings
grant
select
,
alter
on
mysqltest_1
.*
to
mysqltest_1
@
localhost
;
grant
select
,
alter
on
mysqltest_1
.*
to
mysqltest_1
@
localhost
;
connect
(
conn1
,
localhost
,
mysqltest_1
,,
mysqltest_1
);
connect
(
conn1
,
localhost
,
mysqltest_1
,,
mysqltest_1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment